Skip to content

Commit 1265a54

Browse files
szaimenbackportbot[bot]
authored andcommitted
feat(Config.php): change array_merge to array_replace_recursive when merging configs
Signed-off-by: Simon L. <szaimen@e.mail.de>
1 parent feaa063 commit 1265a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private function readData() {
222222
throw new \Exception($errorMessage);
223223
}
224224
if (isset($CONFIG) && is_array($CONFIG)) {
225-
$this->cache = array_merge($this->cache, $CONFIG);
225+
$this->cache = array_replace_recursive($this->cache, $CONFIG);
226226
}
227227
}
228228

0 commit comments

Comments
 (0)