Skip to content

Commit 80fbd7a

Browse files
committed
Fix NullsafeMethodCall
1 parent b730aed commit 80fbd7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,6 +2933,7 @@ static function (): void {
29332933
$exprResult->getImpurePoints(),
29342934
static fn (): MutatingScope => $scope->filterByTruthyValue($expr),
29352935
static fn (): MutatingScope => $scope->filterByFalseyValue($expr),
2936+
$exprResult->isAlwaysTerminating()
29362937
);
29372938
} elseif ($expr instanceof StaticCall) {
29382939
$hasYield = false;

0 commit comments

Comments
 (0)