1
0
Fork 0

Fix type error

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

View File

@ -326,7 +326,7 @@ class ValidatingArrayLoader implements LoaderInterface
} }
if ($type === 'psr-4') { if ($type === 'psr-4') {
foreach ($typeConfig as $namespace => $dirs) { foreach ($typeConfig as $namespace => $dirs) {
if ($namespace !== '' && '\\' !== substr($namespace, -1)) { if ($namespace !== '' && '\\' !== substr((string) $namespace, -1)) {
$this->errors[] = 'autoload.psr-4 : invalid value ('.$namespace.'), namespaces must end with a namespace separator, should be '.$namespace.'\\\\'; $this->errors[] = 'autoload.psr-4 : invalid value ('.$namespace.'), namespaces must end with a namespace separator, should be '.$namespace.'\\\\';
} }
} }