Merge pull request #3376 from Icinga/bugfix/classloader-namespace-interference

Fix interference between two similar namespaces
This commit is contained in:
lippserd 2018-03-01 16:39:14 +01:00 committed by GitHub
commit faca1c0908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class ClassLoader
}
foreach ($this->namespaces as $namespace => $dir) {
if ($class === strstr($class, $namespace)) {
if ($class === strstr($class, "$namespace\\")) {
return $this->buildClassFilename($class, $namespace);
}
}