generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When running php artisan config:check I was presented with the following error:
foreach() argument must be of type array|object, int given
vendor/chrisdicarlo/laravel-config-checker/src/Support/LoadConfigKeys.php:34
This may be localised to our config files however it would make sense to modify the below function since the arguments are not strictly typed:
private function flattenConfig($config, $prefix = '')
{
if (is_array($config)) {
// .. existing foreach loop
}
}
Doing this allowed me to run the package
How to reproduce the bug
Install package and run php artisan config:check
Package Version
^1.0
PHP Version
8.1.12
Laravel Version
10.48.22
Which operating systems does with happen with?
macOS, Linux
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working