[ClassLoader] made a small optimization
This commit is contained in:
parent
ee3d03ee8a
commit
3686edf769
@ -177,9 +177,7 @@ class UniversalClassLoader
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ('\\' === $class[0]) {
|
||||
$class = substr($class, 1);
|
||||
}
|
||||
$class = ltrim($class, '\\');
|
||||
|
||||
if (false !== ($pos = strripos($class, '\\'))) {
|
||||
// namespaced class name
|
||||
|
Reference in New Issue
Block a user