1
0
Fork 0

Fix error output of the psr-4 trailing backslash validation

pull/4738/head
Jordi Boggiano 2015-12-27 13:58:20 +00:00
parent d6ae9a0529
commit f31799b739
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class ValidatingArrayLoader implements LoaderInterface
if ($type === 'psr-4') {
foreach ($typeConfig as $namespace => $dirs) {
if ($namespace !== '' && '\\' !== substr($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.'\\\\';
}
}
}