Skip to content

Commit 5fb5b06

Browse files
committed
fix nullsafe
1 parent 180c665 commit 5fb5b06

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2935,7 +2935,7 @@ static function (): void {
29352935
return new ExpressionResult(
29362936
$scope,
29372937
$exprResult->hasYield(),
2938-
$exprResult->isAlwaysTerminating(),
2938+
false,
29392939
$exprResult->getThrowPoints(),
29402940
$exprResult->getImpurePoints(),
29412941
static fn (): MutatingScope => $scope->filterByTruthyValue($expr),
@@ -3142,7 +3142,7 @@ static function (): void {
31423142
return new ExpressionResult(
31433143
$scope,
31443144
$exprResult->hasYield(),
3145-
$exprResult->isAlwaysTerminating(),
3145+
false,
31463146
$exprResult->getThrowPoints(),
31473147
$exprResult->getImpurePoints(),
31483148
static fn (): MutatingScope => $scope->filterByTruthyValue($expr),

tests/PHPStan/Rules/Api/composer.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)