From 137f33e9e1f52a735cfc27cb0d0681088df7f1f6 Mon Sep 17 00:00:00 2001 From: Andrzej Kostrzewa Date: Fri, 10 Jun 2022 14:21:20 +0200 Subject: [PATCH] Fix #919 --- src/StaticAnalysis/IgnoredLinesFindingVisitor.php | 4 ++++ 1 file changed, 4 insertions(+) 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; }