You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running composer require, it hits this error on api.php line 8. Can't install. Don't have this issue with composer require on any other packages I just tested.
In api.php line 8:
Invalid argument supplied for foreach()
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The text was updated successfully, but these errors were encountered:
I was getting the same error when I first tried installing into my existing Laravel 8 project.
This happens if the config was cached using php artisan config:cache. After that every call to new config values, inlcluding config('openapi.collections') will return null, thus the error.
The solution is simple: Just run php artisan config:clear and installation will run smoothly. At least it did for me.
When running composer require, it hits this error on api.php line 8. Can't install. Don't have this issue with composer require on any other packages I just tested.
The text was updated successfully, but these errors were encountered: