Skip to content

Commit e540d37

Browse files
committed
cs
1 parent fda3416 commit e540d37

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Type/MixedType.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
use PHPStan\Type\Accessory\OversizedArrayType;
2828
use PHPStan\Type\Constant\ConstantArrayType;
2929
use PHPStan\Type\Constant\ConstantBooleanType;
30-
use PHPStan\Type\Constant\ConstantFloatType;
3130
use PHPStan\Type\Constant\ConstantIntegerType;
32-
use PHPStan\Type\Constant\ConstantStringType;
3331
use PHPStan\Type\Generic\TemplateMixedType;
3432
use PHPStan\Type\Generic\TemplateType;
3533
use PHPStan\Type\Traits\NonGeneralizableTypeTrait;
@@ -487,13 +485,13 @@ public function toAbsoluteNumber(): Type
487485

488486
public function toInteger(): Type
489487
{
490-
$castsToZero = new UnionType([
488+
$castsToZero = new UnionType([
491489
new NullType(),
492490
new ConstantBooleanType(false),
493491
new ConstantIntegerType(0),
494492
new ConstantArrayType([], []),
495493
new StringType(),
496-
new FloatType()
494+
new FloatType(),
497495
]);
498496
if (
499497
$this->subtractedType !== null

0 commit comments

Comments
 (0)