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 dbf0a11 commit 5d2ff96Copy full SHA for 5d2ff96
1 file changed
PhpParserReflector/FindAnonymousClassVisitor.php
@@ -27,11 +27,11 @@ public function __construct(
27
28
public function enterNode(Node $node): ?int
29
{
30
- if ($node->getLine() < $this->name->line) {
+ if ($node->getStartLine() < $this->name->line) {
31
return null;
32
}
33
34
- if ($node->getLine() > $this->name->line) {
+ if ($node->getStartLine() > $this->name->line) {
35
return NodeTraverser::STOP_TRAVERSAL;
36
37
0 commit comments