Skip to content

Commit 4487dca

Browse files
Fix
1 parent 28e503e commit 4487dca

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
@@ -27,9 +27,6 @@
2727
use PHPStan\Type\Type;
2828
use PHPStan\Type\TypeCombinator;
2929
use PHPStan\Type\UnionType;
30-
31-
use PHPStan\Type\VerbosityLevel;
32-
3330
use function array_key_exists;
3431
use function array_merge;
3532
use function hexdec;
@@ -130,11 +127,6 @@ public function getType(Type $inputType, ?Type $filterType, ?Type $flagsType): T
130127
}
131128

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

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

0 commit comments

Comments
 (0)