Skip to content

Commit 63ae404

Browse files
committed
Fix NullsafeMethodCall
1 parent 36a5881 commit 63ae404

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

0 commit comments

Comments
 (0)