Skip to content

Commit f4984d2

Browse files
committed
Update TypeSpecifier.php
1 parent e1f4910 commit f4984d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function specifyTypesInCondition(
460460
}
461461
$newScope = $scope->filterBySpecifiedTypes($result);
462462
$callType = $newScope->getType($expr->right);
463-
$newContext = TypeSpecifierContext::createTruthy($callType);
463+
$newContext = $context->true() ? TypeSpecifierContext::createTrue($callType) : TypeSpecifierContext::createTrue($callType)->negate();
464464

465465
$result = $result->unionWith($this->specifyTypesInCondition(
466466
$scope,

0 commit comments

Comments
 (0)