From f98005aaa58718e2eede9d27649f100f923c51bc Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 6 Jan 2026 14:53:24 +0100 Subject: [PATCH] feat(Config.php): change `array_merge` to `array_replace_recursive` when merging configs Signed-off-by: Simon L. --- lib/private/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Config.php b/lib/private/Config.php index 0e8d07955af06..13f3d8cc78ce6 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -222,7 +222,7 @@ private function readData() { throw new \Exception($errorMessage); } if (isset($CONFIG) && is_array($CONFIG)) { - $this->cache = array_merge($this->cache, $CONFIG); + $this->cache = array_replace_recursive($this->cache, $CONFIG); } }