Skip to content

Commit 20e3f3b

Browse files
committed
Fix NullsafeMethodCall
1 parent 24b8a0c commit 20e3f3b

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
@@ -2930,6 +2930,7 @@ static function (): void {
29302930
$exprResult->getImpurePoints(),
29312931
static fn (): MutatingScope => $scope->filterByTruthyValue($expr),
29322932
static fn (): MutatingScope => $scope->filterByFalseyValue($expr),
2933+
$exprResult->isAlwaysTerminating()
29332934
);
29342935
} elseif ($expr instanceof StaticCall) {
29352936
$hasYield = false;

0 commit comments

Comments
 (0)