Skip to content

Commit 30b5653

Browse files
committed
Update MixedType.php
1 parent 43d6df2 commit 30b5653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/MixedType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public function toInteger(): Type
506506
new ConstantIntegerType(0),
507507
new ConstantArrayType([], []),
508508
new StringType(),
509-
new FloatType(),
509+
new FloatType(), // every 0.x float casts to int(0)
510510
]);
511511
if (
512512
$this->subtractedType !== null

0 commit comments

Comments
 (0)