Skip to content

Commit ad8821e

Browse files
authored
Discard changes to src/Rules/Comparison/ImpossibleCheckTypeHelper.php
1 parent f55eb37 commit ad8821e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Rules/Comparison/ImpossibleCheckTypeHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ public function findSpecifiedType(
252252
}
253253

254254
$typeSpecifierScope = $this->treatPhpDocTypesAsCertain ? $scope : $scope->doNotTreatPhpDocTypesAsCertain();
255-
$context = $this->determineContext($typeSpecifierScope, $node);
256-
$specifiedTypes = $this->typeSpecifier->specifyTypesInCondition($typeSpecifierScope, $node, $context);
255+
$specifiedTypes = $this->typeSpecifier->specifyTypesInCondition($typeSpecifierScope, $node, $this->determineContext($typeSpecifierScope, $node));
257256

258257
// don't validate types on overwrite
259258
if ($specifiedTypes->shouldOverwrite()) {

0 commit comments

Comments
 (0)