Fix interference between two similar namespaces

This commit is contained in:
Alexander A. Klimov 2018-03-01 14:01:57 +01:00
parent b19ae23f7a
commit 4477f33b31
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);
}
}