Skip to content

array_merge bug in the mergeConfigFrom (Illuminate\Support\ServiceProvider) #12159

@saint-father

Description

@saint-father

\Illuminate\Support\ServiceProvider.php line 67 function "mergeConfigFrom"
$this->app['config']->set($key, array_merge($config, require $path));
The bug is array_merge($config, require $path) .. need to use the array_merge(require $path, $config) instead.
When I use the "mergeConfigFrom" my config options (same key) should be overwritten. Try to debug this feature with the custom "auth" config (useful for multiauth).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions