From 1be03aaa2b55307d3bfead845a8e2886a0d06925 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 a9eb58a186646..30ccbb2f2d406 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -242,7 +242,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); } }