diff --git a/lib/PhpParser/Autoloader.php b/lib/PhpParser/Autoloader.php index 560a8d9..809a06e 100644 --- a/lib/PhpParser/Autoloader.php +++ b/lib/PhpParser/Autoloader.php @@ -31,7 +31,7 @@ class Autoloader */ static public function autoload($class) { if (0 === strpos($class, 'PhpParser\\')) { - $fileName = dirname(__DIR__) . '/' . strtr($class, '\\', '/') . '.php'; + $fileName = __DIR__ . strtr(substr($class, 9), '\\', '/') . '.php'; if (file_exists($fileName)) { require $fileName; }