1
0
Fork 0

Fix type error in validating array loader when name is not set

pull/11057/head
Jordi Boggiano 2022-09-13 16:12:28 +02:00
parent e94eff5412
commit fb3cae4448
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}