Skip to content

Commit ef88a7a

Browse files
Fix
1 parent cd2b8eb commit ef88a7a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Type/Php/FilterFunctionReturnTypeHelper.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
use PHPStan\Type\Type;
2727
use PHPStan\Type\TypeCombinator;
2828
use PHPStan\Type\UnionType;
29-
30-
use PHPStan\Type\VerbosityLevel;
31-
3229
use function array_key_exists;
3330
use function array_merge;
3431
use function hexdec;
@@ -129,11 +126,6 @@ public function getType(Type $inputType, ?Type $filterType, ?Type $flagsType): T
129126
}
130127

131128
$hasOptions = $this->hasOptions($flagsType);
132-
if ($hasOptions->maybe()) {
133-
// Too complicated
134-
return $mixedType;
135-
}
136-
137129
$options = $hasOptions->yes() ? $this->getOptions($flagsType, $filterValue) : [];
138130

139131
if (isset($options['default'])) {

0 commit comments

Comments
 (0)