Skip to content

Commit ec0d40c

Browse files
Do not process anonymous classes
1 parent 2a16259 commit ec0d40c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/IgnoredLinesFindingVisitor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public function enterNode(Node $node): ?int
4646
return null;
4747
}
4848

49+
if ($node instanceof Class_ && $node->isAnonymous()) {
50+
return null;
51+
}
52+
4953
$docComment = $node->getDocComment();
5054

5155
if ($docComment === null) {

0 commit comments

Comments
 (0)