Skip to content

Commit

Permalink
fix name resolution issue in global namespace only
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Aug 6, 2020
1 parent 7ebba69 commit df3f001
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ protected function addNamespacedName(Node $node)
private function concatParentRecursive(Node $node): Name
{
$parentNode = $node->getAttribute($this->attributeParentKey);
if ($parentNode instanceof Node && property_exists($parentNode, 'name')) {
if ($parentNode instanceof Node
&& property_exists($parentNode, 'name')
&& null !== $parentNode->name
) {
$parent = $this->concatParentRecursive($parentNode);
} else {
$parent = null;
Expand Down

0 comments on commit df3f001

Please sign in to comment.