1
0
Fork 0

Merge branch 'master' into 2.0

pull/7936/head
Jordi Boggiano 2019-11-01 17:13:09 +01:00
commit aaead1bb88
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;
}