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
parent 72ad2edcd7
commit 178fb77be8

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);
}
}