Skip to content

Commit be9371d

Browse files
committed
Remove TODO
1 parent ce5acf3 commit be9371d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public function getNamespaceDefinition() {
587587
? $this
588588
: $this->getFirstAncestor(NamespaceDefinition::class, SourceFileNode::class);
589589

590-
/** @phpstan-ignore-next-line TODO: can this happen? test with framework test cases */
590+
/** @phpstan-ignore-next-line result is always false -- not sure this can happen */
591591
if ($namespaceDefinition instanceof NamespaceDefinition && !($namespaceDefinition->parent instanceof SourceFileNode)) {
592592
$namespaceDefinition = $namespaceDefinition->getFirstAncestor(SourceFileNode::class);
593593
}

0 commit comments

Comments
 (0)