Skip to content

Commit 598a82d

Browse files
committed
Handle Block statement
1 parent 8b462d2 commit 598a82d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,8 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
18951895
$impurePoints = [
18961896
new ImpurePoint($scope, $stmt, 'betweenPhpTags', 'output between PHP opening and closing tags', true),
18971897
];
1898+
} elseif ($stmt instanceof Node\Stmt\Block) {
1899+
return $this->processStmtNodes($stmt, $stmt->stmts, $scope, $nodeCallback, $context);
18981900
} elseif ($stmt instanceof Node\Stmt\Nop) {
18991901
$hasYield = false;
19001902
$throwPoints = $overridingThrowPoints ?? [];

0 commit comments

Comments
 (0)