Skip to content

Commit 1c0f14c

Browse files
committed
final touch; fix phpstan
1 parent bc8c899 commit 1c0f14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6228,7 +6228,7 @@ private function getNextUnreachableStatements(array $nodes, bool $earlyBinding):
62286228
$stmts = [];
62296229
$isPassedUnreachableStatement = false;
62306230
foreach ($nodes as $node) {
6231-
if ($isPassedUnreachableStatement) {
6231+
if ($isPassedUnreachableStatement && $node instanceof Node\Stmt) {
62326232
$stmts[] = $node;
62336233
continue;
62346234
}

0 commit comments

Comments
 (0)