File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 1717use PHPStan \Type \IntegerRangeType ;
1818use PHPStan \Type \IntegerType ;
1919use PHPStan \Type \IntersectionType ;
20- use PHPStan \Type \MixedType ;
2120use PHPStan \Type \NeverType ;
2221use PHPStan \Type \StringType ;
2322use PHPStan \Type \Type ;
2423use PHPStan \Type \TypeCombinator ;
25- use PHPStan \Type \TypeUtils ;
2624use function count ;
2725
2826final class ExplodeFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
@@ -85,10 +83,6 @@ public function getTypeFromFunctionCall(
8583 $ returnType = TypeCombinator::union ($ returnType , new ConstantBooleanType (false ));
8684 }
8785
88- if ($ delimiterType instanceof MixedType) {
89- $ returnType = TypeUtils::toBenevolentUnion ($ returnType );
90- }
91-
9286 return $ returnType ;
9387 }
9488
You can’t perform that action at this time.
0 commit comments