The problem is solved.
I have had to clear the bootstrap cache and to add --no-scripts to the commands to have to working.
Then I have upgraded all packages.
And it works fine now.
Hello,
I wanted to upgrade Pest from v3 to v4.
So I have remove both pest packages, then reinstalled them.
"pestphp/pest": "^3.8",
"pestphp/pest-plugin-laravel": "^3.8",
And now I get this error while running composer or artisan commands.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Error
Call to a member function make() on null
at vendor/laravel/framework/src/Illuminate/Console/Command.php:171
167▕ */
168▕ #[\Override]
169▕ public function run(InputInterface $input, OutputInterface $output): int
170▕ {
➜ 171▕ $this->output = $output instanceof OutputStyle ? $output : $this->laravel->make(
172▕ OutputStyle::class, ['input' => $input, 'output' => $output]
173▕ );
174▕
175▕ $this->components = $this->laravel->make(Factory::class, ['output' => $this->output]);
+5 vendor frames
6 artisan:16
Illuminate\Foundation\Application::handleCommand()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
What do you suggest me to do ?
Thanks for your help.
V
The problem is solved.
I have had to clear the bootstrap cache and to add --no-scripts to the commands to have to working.
Then I have upgraded all packages.
And it works fine now.
Please or to participate in this conversation.