Viruscom's avatar

In ServiceProvider.php line 173: array_key_exists(): The first argument should be either a string or an integer

Every command in console gives me that error.

In ServiceProvider.php line 173: array_key_exists(): The first argument should be either a string or an integer

APP_ENV=local; PHP version 7.2; Laravel version 5.5.5; Composer version 1.10.19

On composer update or composer dump-autoload i get

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

I can't even use php artisan.

Any ideas how to fix it?

0 likes
5 replies
Snapey's avatar

You will need to retrace your steps to see what was broken. Hopefully you are using git so can easily review what changes you made since it last worked

katana07's avatar

I have encountered this error also. Any idea how to fix this? have you resolved yours?

Please or to participate in this conversation.