laravel升级到7.x投掷作曲家的点火包中的错误

发布于 2025-01-25 14:46:33 字数 849 浏览 3 评论 0原文

目前,我正在尝试将Laravel应用程序从6.x升级到7.x,但是在安装了所需的软件包“立面/点火”后,我收到了以下错误:

Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In QueryRecorder.php line 22:

  Argument 2 passed to Facade\Ignition\QueryRecorder\QueryRecorder::__construct() must be of the type bool, null given
  , called in /var/www/html/vendor/facade/ignition/src/IgnitionServiceProvider.php on line 386


Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

软件包版本为^2.5,现在我找到了解决方案,我会在这里发布。

Currently I was trying to upgrade a laravel app from 6.x to 7.x, but after installing the required package 'facade/ignition' I got the following error:

Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In QueryRecorder.php line 22:

  Argument 2 passed to Facade\Ignition\QueryRecorder\QueryRecorder::__construct() must be of the type bool, null given
  , called in /var/www/html/vendor/facade/ignition/src/IgnitionServiceProvider.php on line 386


Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

The package version was ^2.5, now that I found the solution I'll post it here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

碍人泪离人颜 2025-02-01 14:46:33

问题是我没有清除缓存。因此,我建议大家更新任何清除您的缓存,视图,配置缓存等内容。清除缓存后,更新成功。

如果您无法运行工匠命令清除缓存,只需删除bootstrap/cache/ Directory下的所有文件(除了.gitignore)

The issue is that I didn't clear the cache. So I recommend you guys before updating anything clear your cache, views, config cache, etc. After clearing the cache the update succeeded.

If you can't run the artisan command to clear the cache, just remove all the files under the bootstrap/cache/ directory (everything but .gitignore)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文