1
0
Fork 0

Fix PSR warnings for optimized autoloader, refs #8397, refs #8403

pull/8406/head
Jordi Boggiano 2019-11-01 17:13:02 +01:00
parent 6a7f8ac335
commit 3496431a6c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class ClassMapGenerator
foreach ($classes as $class) {
// skip classes not within the given namespace prefix
// TODO enable in Composer v1.11 or 2.0 whichever comes first
if (/* null === $autoloadType && */ null !== $namespace && 0 !== strpos($class, $namespace)) {
if (/* null === $autoloadType && */ null !== $namespace && '' !== $namespace && 0 !== strpos($class, $namespace)) {
continue;
}