Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

clayhenry's avatar

update to 5.1 and array_merge(): Argument #2 is not an array

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?

0 likes
1 reply
clayhenry's avatar
clayhenry
OP
Best Answer
Level 1

Removing services.json from bootstrap/cache fixed the issue.

1 like

Please or to participate in this conversation.