Fix type error in validating array loader when name is not set
parent
e94eff5412
commit
fb3cae4448
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue