Skip to content

Commit cfb784a

Browse files
committed
Fixed missing processing of Scalar
1 parent b797512 commit cfb784a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,6 +2818,9 @@ static function (Node $node, Scope $scope) use ($nodeCallback): void {
28182818
$hasYield = $classResult->hasYield();
28192819
$throwPoints = $classResult->getThrowPoints();
28202820
}
2821+
} elseif ($expr instanceof Node\Scalar) {
2822+
$hasYield = false;
2823+
$throwPoints = [];
28212824
} else {
28222825
$hasYield = false;
28232826
$throwPoints = [];

0 commit comments

Comments
 (0)