1
0
Fork 0

Fix ignored config merging when audit is present but ignored isnt

pull/11581/head
Jordi Boggiano 2023-08-04 10:47:43 +02:00
parent c5baa37cdf
commit 7ffcaacd08
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class Config
$currentIgnores = $this->config['audit']['ignored']; $currentIgnores = $this->config['audit']['ignored'];
$this->config[$key] = $val; $this->config[$key] = $val;
$this->setSourceOfConfigValue($val, $key, $source); $this->setSourceOfConfigValue($val, $key, $source);
$this->config['audit']['ignored'] = array_merge($currentIgnores, $val['ignored']); $this->config['audit']['ignored'] = array_merge($currentIgnores, $val['ignored'] ?? []);
} else { } else {
$this->config[$key] = $val; $this->config[$key] = $val;
$this->setSourceOfConfigValue($val, $key, $source); $this->setSourceOfConfigValue($val, $key, $source);