diff --git a/src/StaticAnalysis/IgnoredLinesFindingVisitor.php b/src/StaticAnalysis/IgnoredLinesFindingVisitor.php index 98d68f097..2edd165c6 100644 --- a/src/StaticAnalysis/IgnoredLinesFindingVisitor.php +++ b/src/StaticAnalysis/IgnoredLinesFindingVisitor.php @@ -65,6 +65,10 @@ public function enterNode(Node $node): void } if ($node instanceof Interface_) { + $this->ignoredLines = array_merge( + $this->ignoredLines, + range($node->getStartLine(), $node->getEndLine()) + ); return; }