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.
1 parent ce5acf3 commit be9371dCopy full SHA for be9371d
src/Node.php
@@ -587,7 +587,7 @@ public function getNamespaceDefinition() {
587
? $this
588
: $this->getFirstAncestor(NamespaceDefinition::class, SourceFileNode::class);
589
590
- /** @phpstan-ignore-next-line TODO: can this happen? test with framework test cases */
+ /** @phpstan-ignore-next-line result is always false -- not sure this can happen */
591
if ($namespaceDefinition instanceof NamespaceDefinition && !($namespaceDefinition->parent instanceof SourceFileNode)) {
592
$namespaceDefinition = $namespaceDefinition->getFirstAncestor(SourceFileNode::class);
593
}
0 commit comments