Skip to content

Commit

Permalink
Merge branch refs/heads/1.12.x into 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot authored Dec 9, 2024
2 parents 1a7cadb + 621e168 commit 89ddae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,9 @@ private function processStmtNode(
} elseif ($stmt instanceof Node\Stmt\Trait_) {
return new StatementResult($scope, false, false, [], [], []);
} elseif ($stmt instanceof Node\Stmt\ClassLike) {
if (!$context->isTopLevel()) {
return new StatementResult($scope, false, false, [], [], []);
}
$hasYield = false;
$throwPoints = [];
$impurePoints = [];
Expand Down

0 comments on commit 89ddae6

Please sign in to comment.