File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function toInteger(): Type
72
72
73
73
public function toFloat (): Type
74
74
{
75
- return new ErrorType ();
75
+ return new FloatType ();
76
76
}
77
77
78
78
public function toArray (): Type
Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ public function testRule(): void
43
43
],
44
44
[
45
45
'Cannot cast object to string. ' ,
46
- 35 ,
46
+ 36 ,
47
47
],
48
48
[
49
49
'Cannot cast Test \\Foo to string. ' ,
50
- 41 ,
50
+ 42 ,
51
51
],
52
52
[
53
53
'Cannot cast array|float|int to string. ' ,
54
- 48 ,
54
+ 49 ,
55
55
],
56
56
]);
57
57
}
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ function (
25
25
26
26
(string ) fopen ('php://memory ' , 'r ' );
27
27
(int ) fopen ('php://memory ' , 'r ' );
28
+ (float ) fopen ('php://memory ' , 'r ' );
28
29
};
29
30
30
31
function (
You can’t perform that action at this time.
0 commit comments