We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b0a62 commit 12369f7Copy full SHA for 12369f7
src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php
@@ -584,8 +584,8 @@ private function processUnreachableStatementNode(
584
$originalStmt = $unreachableStatementNode->getOriginalStatement();
585
$originalStmt->setAttribute(AttributeKey::IS_UNREACHABLE, true);
586
587
- foreach ($unreachableStatementNode->getNextStatements() as $nextStatement) {
588
- $nextStatement->setAttribute(AttributeKey::IS_UNREACHABLE, true);
+ foreach ($unreachableStatementNode->getNextStatements() as $stmt) {
+ $stmt->setAttribute(AttributeKey::IS_UNREACHABLE, true);
589
}
590
591
$this->nodeScopeResolverProcessNodes(
0 commit comments