diff --git a/src/Reflector.php b/src/Reflector.php index 0d0862557..20bf2e491 100644 --- a/src/Reflector.php +++ b/src/Reflector.php @@ -49,12 +49,7 @@ public function reflect($className) */ public function reflectClassFromFile($className, $filename) { - $fileContent = file_get_contents($filename); - - $parser = new Parser(new Lexer); - $ast = $parser->parse($fileContent); - - $classes = $this->reflectClassesFromTree($ast); + $classes = $this->getClassesFromFile($filename); foreach ($classes as $class) { if ($class->getName() == $className) {