Skip to content

Commit e966047

Browse files
authored
Merge pull request #391 from dantleech/gh-390
Fix regression with getNamespacedName()
2 parents a35ec03 + ec763b3 commit e966047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NamespacedNameTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getNamespacedName() : ResolvedName {
3131
return ResolvedName::buildName($this->getNameParts(), $content);
3232
}
3333

34-
if ($namespaceDefinition->name !== null) {
34+
if ($namespaceDefinition->name instanceof QualifiedName) {
3535
$resolvedName = ResolvedName::buildName($namespaceDefinition->name->nameParts, $content);
3636
} else {
3737
$resolvedName = ResolvedName::buildName([], $content);
@@ -47,4 +47,4 @@ public function getNamespacedName() : ResolvedName {
4747
}
4848
return $resolvedName;
4949
}
50-
}
50+
}

0 commit comments

Comments
 (0)