This Content is from Stack Overflow. Question asked by Valentino
I changed my hosting and dev container. In the process, Composer got updated to version 2.4.2 (latest).
Now, if I run
composer update composer install #after removing the lock file
I always get this error:
> IlluminateFoundationComposerScripts::postAutoloadDump > @php artisan package:discover --ansi <comment>In LoadConfiguration.php line 66:</comment> <error> </error> <error> </error> <error> </error>
php artisan package:discover --ansi works just fine!
.env file is also good (LF line endings, all variables with strange characters are in double quotes..)
There are a bunch of non-compliant models in my app at the moment (work in progress), and the autoloader skips them:
Class AppModelsFaq located in ./app/Models/paki/Faq.php does not comply with psr-4 autoloading standard. Skipping.
But I don’t suppose this is related to this problem.
I also tried to rename the vendor folder and reinstall everything, but I still get this error. What can I do?
problem "solved" by rolling back composer to version 2.0.9
hopefully the guys at Composer will fix the bug
This Question was asked in StackOverflow by Valentino and Answered by Valentino It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.