diff --git a/src/Composer/Package/Loader/ValidatingArrayLoader.php b/src/Composer/Package/Loader/ValidatingArrayLoader.php index 020cd5b1b..265255acf 100644 --- a/src/Composer/Package/Loader/ValidatingArrayLoader.php +++ b/src/Composer/Package/Loader/ValidatingArrayLoader.php @@ -65,7 +65,7 @@ class ValidatingArrayLoader implements LoaderInterface $this->config = $config; $this->validateString('name', true); - if ($err = self::hasPackageNamingError($config['name'])) { + if (isset($config['name']) && ($err = self::hasPackageNamingError($config['name']))) { $this->errors[] = 'name : '.$err; }