Skip to content

Commit

Permalink
Process ClassConstFetch::$class when it's a name
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 3, 2024
1 parent 3cdac94 commit 712c33e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,11 @@ static function (): void {
$hasYield = $result->hasYield();
$throwPoints = $result->getThrowPoints();
$impurePoints = $result->getImpurePoints();
} else {
$hasYield = false;
$throwPoints = [];
$impurePoints = [];
$nodeCallback($expr->class, $scope);
}
} elseif ($expr instanceof Expr\Empty_) {
$nonNullabilityResult = $this->ensureNonNullability($scope, $expr->expr);
Expand Down

0 comments on commit 712c33e

Please sign in to comment.