Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent error argument type when package:discover is running #3

Closed
a21ns1g4ts opened this issue Nov 12, 2020 · 3 comments
Closed

Prevent error argument type when package:discover is running #3

a21ns1g4ts opened this issue Nov 12, 2020 · 3 comments

Comments

@a21ns1g4ts
Copy link

a21ns1g4ts commented Nov 12, 2020

When the php artisan package:discover --ansi is running i get this error

> @php artisan package:discover --ansi

  TypeError 

 Argument 1 passed to Spatie\LaravelSettings\Support\DiscoverSettings::within() must be of the type array, null given, called in /home/danvi/Projects/sistema_janelaunica/vendor/spatie/laravel-settings/src/SettingsContainer.php on line 49

Steps to reproduce:
1 - Remove vendor path and cache files of laravel
2 - Run composer install

@rubenvanassche
Copy link
Member

@Atiladanvi seems that the config value of settings.auto_discover_settings is null, it should be an array. Could you check why this config value was not set?

Did a clean install and the problem doesn't pop up so, I'll guess there's something wrong with your config file.

@a21ns1g4ts
Copy link
Author

a21ns1g4ts commented Nov 13, 2020

I'm sorry for this issue. I don't know what was happened but now (today :neckbeard: ) it work. Thanks for your reply !

@juliomotol
Copy link

I've recently encountered this problem. I ran php artisan config:clear and it worked. It must've had something to do with the cached config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants