laravel/laravel — Issue #266: array_merge reindexes numeric keys in Config::load()
Author: paulboco
Created: 2012-01-23 03:44:45+00:00
State: open

PHP's array_merge() function re-indexes numeric keys as described in this article...
http://www.vancelucas.com/blog/php-array_merge-preserving-numeric-keys/

and PHP's documentation.
http://php.net/manual/en/function.array-merge.php

A fix would be to use the + (plus) operator rather than array_merge in laravel/config.php on line 155.
i.e.

- $config = array_merge($config, require $path);
+ $config = $config + require $path;

Not sure if this would cause other problems, if so, close this issue.
I'm sure I can find a work-around.