diff --git a/src/Composer/Config.php b/src/Composer/Config.php index c5e1f355d..0523bbb2a 100644 --- a/src/Composer/Config.php +++ b/src/Composer/Config.php @@ -212,7 +212,7 @@ class Config $currentIgnores = $this->config['audit']['ignored']; $this->config[$key] = $val; $this->setSourceOfConfigValue($val, $key, $source); - $this->config['audit']['ignored'] = array_merge($currentIgnores, $val['ignored']); + $this->config['audit']['ignored'] = array_merge($currentIgnores, $val['ignored'] ?? []); } else { $this->config[$key] = $val; $this->setSourceOfConfigValue($val, $key, $source);