feat(Config.php): change array_merge to array_replace_recursive when merging configs

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2026-01-06 14:53:24 +01:00 committed by backportbot[bot]
parent ae4f4e3af2
commit 1be03aaa2b

View file

@ -242,7 +242,7 @@ class Config {
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);
}
}