We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a35ec03 + ec763b3 commit e966047Copy full SHA for e966047
src/NamespacedNameTrait.php
@@ -31,7 +31,7 @@ public function getNamespacedName() : ResolvedName {
31
return ResolvedName::buildName($this->getNameParts(), $content);
32
}
33
34
- if ($namespaceDefinition->name !== null) {
+ if ($namespaceDefinition->name instanceof QualifiedName) {
35
$resolvedName = ResolvedName::buildName($namespaceDefinition->name->nameParts, $content);
36
} else {
37
$resolvedName = ResolvedName::buildName([], $content);
@@ -47,4 +47,4 @@ public function getNamespacedName() : ResolvedName {
47
48
return $resolvedName;
49
50
-}
+}
0 commit comments