Merge pull request #3376 from Icinga/bugfix/classloader-namespace-interference
Fix interference between two similar namespaces
This commit is contained in:
commit
faca1c0908
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue