diff --git a/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php b/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php index d675eee45c..3455d6bc4f 100644 --- a/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php +++ b/src/Type/Php/ExplodeFunctionDynamicReturnTypeExtension.php @@ -17,12 +17,10 @@ use PHPStan\Type\IntegerRangeType; use PHPStan\Type\IntegerType; use PHPStan\Type\IntersectionType; -use PHPStan\Type\MixedType; use PHPStan\Type\NeverType; use PHPStan\Type\StringType; use PHPStan\Type\Type; use PHPStan\Type\TypeCombinator; -use PHPStan\Type\TypeUtils; use function count; final class ExplodeFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension @@ -85,10 +83,6 @@ public function getTypeFromFunctionCall( $returnType = TypeCombinator::union($returnType, new ConstantBooleanType(false)); } - if ($delimiterType instanceof MixedType) { - $returnType = TypeUtils::toBenevolentUnion($returnType); - } - return $returnType; }