Fix error output of the psr-4 trailing backslash validation
parent
d6ae9a0529
commit
f31799b739
|
@ -209,7 +209,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($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.'\\\\';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue