Skip to content

Commit 9260215

Browse files
authored
fix: override merging behaviour
1 parent 0e15d04 commit 9260215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Config/BaseConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function registerProperties()
291291

292292
foreach ($properties as $property => $value) {
293293
if (isset($this->{$property}) && is_array($this->{$property}) && is_array($value)) {
294-
$this->{$property} = array_merge($this->{$property}, $value);
294+
$this->{$property} = array_replace_recursive($this->{$property}, $value);
295295
} else {
296296
$this->{$property} = $value;
297297
}

0 commit comments

Comments
 (0)