Skip to content

Commit 48b0b46

Browse files
committed
Simplify comparisions.
1 parent 7c7379e commit 48b0b46

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/Type/Php/FilterFunctionReturnTypeHelper.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ private function determineExactType(Type $in, int $filterValue, Type $defaultTyp
416416
$useDefaultType = true;
417417
}
418418

419-
$canBeSanitized = $this->canStringBeSanitized($filterValue, $flagsType);
420-
if ($canBeSanitized->no()) {
421-
$stringType = $scalarOrNullType->toString();
422-
} elseif ($scalarOrNullType->isString()->no()) {
419+
if ($this->canStringBeSanitized($filterValue, $flagsType)->no()) {
423420
$stringType = $scalarOrNullType->toString();
424421
} else {
425422
$stringType = TypeCombinator::union(

0 commit comments

Comments
 (0)