Skip to content

Conversation

valorin
Copy link
Contributor

@valorin valorin commented Aug 23, 2014

Normal configs were cascading with array_replace_recursive(), which
merged recursive arrays nicely, however Package configs were using
array_merge(), which only merged the top-level arrays. This is
inconsistent across the configuration handling, and is confusing for
users trying to override specific package configuration.

It looks like this fix was proposed in Issue #757, but missed when the
Issue #1225 was proposed, considered a duplicate, and eventually
merged.

Normal configs were cascading with array_replace_recursive(), which
merged recursive arrays nicely, however Package configs were using
array_merge(), which only merged the top-level arrays. This is
inconsistent across the configuration handling, and is confusing for
users trying to override specific package configuration.

It looks like this fix was proposed in Issue laravel#757, but missed when the
Issue laravel#1225 was proposed, considered a duplicate, and eventually
merged.
taylorotwell added a commit that referenced this pull request Sep 8, 2014
Fixing cascade behaviour for package config.
@taylorotwell taylorotwell merged commit 464ad55 into laravel:4.2 Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants