Skip to content

Commit

Permalink
Merge pull request #9 from goaop/fix/inject-file-name
Browse files Browse the repository at this point in the history
Always injects file name into the class nodes
  • Loading branch information
lisachenko committed Feb 27, 2016
2 parents d8f51e0 + 77350f3 commit 729adbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ReflectionEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 729adbe

Please sign in to comment.