Level 1
Removing services.json from bootstrap/cache fixed the issue.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, i'm trying to do a composer update from 5.0 to 5.1. I get hit with
array_merge(): Argument #2 is not an array
looking at logs, error is caused by:
local.ERROR: exception 'ErrorException' with message 'array_merge(): Argument #2 is not an array' in /Applications/MAMP/htdocs/laravel/laravel/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:174
Any idea what causes it and best way to fix it?
Removing services.json from bootstrap/cache fixed the issue.
Please or to participate in this conversation.