diff --git a/src/StaticAnalysis/ExecutableLinesFindingVisitor.php b/src/StaticAnalysis/ExecutableLinesFindingVisitor.php index 794084ff9..eadff1cf0 100644 --- a/src/StaticAnalysis/ExecutableLinesFindingVisitor.php +++ b/src/StaticAnalysis/ExecutableLinesFindingVisitor.php @@ -101,6 +101,7 @@ public function enterNode(Node $node): void $node instanceof Node\Stmt\Else_ || $node instanceof Node\Stmt\EnumCase || $node instanceof Node\Stmt\Finally_ || + $node instanceof Node\Stmt\GroupUse || $node instanceof Node\Stmt\Label || $node instanceof Node\Stmt\Namespace_ || $node instanceof Node\Stmt\Nop || diff --git a/tests/_files/source_for_branched_exec_lines.php b/tests/_files/source_for_branched_exec_lines.php index 2c84153b3..b55a54a00 100644 --- a/tests/_files/source_for_branched_exec_lines.php +++ b/tests/_files/source_for_branched_exec_lines.php @@ -6,6 +6,10 @@ use DateTimeInterface; +use MyOtherNamespace\{ClassA, ClassB, ClassC as C}; +use function MyOtherNamespace\{fn_a, fn_b, fn_c}; +use const MyOtherNamespace\{ConstA, ConstB, ConstC}; + // Integer in comments represent the branch index difference // relative to the previous line