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

Signed-off-by: Simon L. <szaimen@e.mail.de>
pull/57400/head
Simon L. 2026-01-06 14:53:24 +07:00 committed by backportbot[bot]
parent ef29405f0d
commit f98005aaa5
1 changed files with 1 additions and 1 deletions

@ -222,7 +222,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);
}
}