Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Sep 19, 2024
1 parent fda3416 commit e540d37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Type/MixedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
use PHPStan\Type\Accessory\OversizedArrayType;
use PHPStan\Type\Constant\ConstantArrayType;
use PHPStan\Type\Constant\ConstantBooleanType;
use PHPStan\Type\Constant\ConstantFloatType;
use PHPStan\Type\Constant\ConstantIntegerType;
use PHPStan\Type\Constant\ConstantStringType;
use PHPStan\Type\Generic\TemplateMixedType;
use PHPStan\Type\Generic\TemplateType;
use PHPStan\Type\Traits\NonGeneralizableTypeTrait;
Expand Down Expand Up @@ -487,13 +485,13 @@ public function toAbsoluteNumber(): Type

public function toInteger(): Type
{
$castsToZero = new UnionType([
$castsToZero = new UnionType([
new NullType(),
new ConstantBooleanType(false),
new ConstantIntegerType(0),
new ConstantArrayType([], []),
new StringType(),
new FloatType()
new FloatType(),
]);
if (
$this->subtractedType !== null
Expand Down

0 comments on commit e540d37

Please sign in to comment.