1
0
Fork 0

Fix phpstan error

pull/11057/head
Jordi Boggiano 2022-09-13 16:28:15 +02:00
parent fb3cae4448
commit adc16bf0af
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 (isset($config['name']) && ($err = self::hasPackageNamingError($config['name']))) {
if (isset($config['name']) && null !== ($err = self::hasPackageNamingError($config['name']))) {
$this->errors[] = 'name : '.$err;
}