Skip to content

Commit 712c33e

Browse files
committed
Process ClassConstFetch::$class when it's a name
1 parent 3cdac94 commit 712c33e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Analyser/NodeScopeResolver.php

+5
Original file line numberDiff line numberDiff line change
@@ -3168,6 +3168,11 @@ static function (): void {
31683168
$hasYield = $result->hasYield();
31693169
$throwPoints = $result->getThrowPoints();
31703170
$impurePoints = $result->getImpurePoints();
3171+
} else {
3172+
$hasYield = false;
3173+
$throwPoints = [];
3174+
$impurePoints = [];
3175+
$nodeCallback($expr->class, $scope);
31713176
}
31723177
} elseif ($expr instanceof Expr\Empty_) {
31733178
$nonNullabilityResult = $this->ensureNonNullability($scope, $expr->expr);

0 commit comments

Comments
 (0)