From 7ffcaacd08e4820ca3a43631999054df941e9788 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 4 Aug 2023 10:47:43 +0200 Subject: [PATCH] Fix ignored config merging when audit is present but ignored isnt --- src/Composer/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);