Skip to content

Commit 5d2ff96

Browse files
committed
Use Node::getStartLine() in FindAnonymousClassVisitor
1 parent dbf0a11 commit 5d2ff96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PhpParserReflector/FindAnonymousClassVisitor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function __construct(
2727

2828
public function enterNode(Node $node): ?int
2929
{
30-
if ($node->getLine() < $this->name->line) {
30+
if ($node->getStartLine() < $this->name->line) {
3131
return null;
3232
}
3333

34-
if ($node->getLine() > $this->name->line) {
34+
if ($node->getStartLine() > $this->name->line) {
3535
return NodeTraverser::STOP_TRAVERSAL;
3636
}
3737

0 commit comments

Comments
 (0)