File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 27
27
use PHPStan \Type \Accessory \OversizedArrayType ;
28
28
use PHPStan \Type \Constant \ConstantArrayType ;
29
29
use PHPStan \Type \Constant \ConstantBooleanType ;
30
- use PHPStan \Type \Constant \ConstantFloatType ;
31
30
use PHPStan \Type \Constant \ConstantIntegerType ;
32
- use PHPStan \Type \Constant \ConstantStringType ;
33
31
use PHPStan \Type \Generic \TemplateMixedType ;
34
32
use PHPStan \Type \Generic \TemplateType ;
35
33
use PHPStan \Type \Traits \NonGeneralizableTypeTrait ;
@@ -487,13 +485,13 @@ public function toAbsoluteNumber(): Type
487
485
488
486
public function toInteger (): Type
489
487
{
490
- $ castsToZero = new UnionType ([
488
+ $ castsToZero = new UnionType ([
491
489
new NullType (),
492
490
new ConstantBooleanType (false ),
493
491
new ConstantIntegerType (0 ),
494
492
new ConstantArrayType ([], []),
495
493
new StringType (),
496
- new FloatType ()
494
+ new FloatType (),
497
495
]);
498
496
if (
499
497
$ this ->subtractedType !== null
You can’t perform that action at this time.
0 commit comments