From 77350f37160cb8740c19ca2d919634b9a73845bf Mon Sep 17 00:00:00 2001 From: Lisachenko Alexander Date: Sat, 27 Feb 2016 16:37:57 +0300 Subject: [PATCH] Always injects file name into the class nodes, resolves #8 --- src/ReflectionEngine.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ReflectionEngine.php b/src/ReflectionEngine.php index 9157245a..0edd481b 100644 --- a/src/ReflectionEngine.php +++ b/src/ReflectionEngine.php @@ -117,6 +117,8 @@ public static function parseClass($fullClassName) foreach ($namespaceNodes as $namespaceLevelNode) { if ($namespaceLevelNode instanceof ClassLike && $namespaceLevelNode->name == $className) { + $namespaceLevelNode->setAttribute('fileName', $classFileName); + return $namespaceLevelNode; } }