@@ -16,7 +16,7 @@ public function doFoo(array $list): void
16
16
assertType ('int<2, max> ' , count ($ list ));
17
17
unset($ list ['fooo ' ]);
18
18
assertType ('array<bool> ' , $ list );
19
- assertType ('int ' , count ($ list ));
19
+ assertType ('int<0, max> ' , count ($ list ));
20
20
}
21
21
}
22
22
@@ -28,24 +28,24 @@ public function doBar(array $list): void
28
28
if (count ($ list ) > 1 ) {
29
29
assertType ('int<2, max> ' , count ($ list ));
30
30
foreach ($ list as $ key => $ item ) {
31
- assertType ('int<2, max>|int<min, 0 > ' , count ($ list ));
31
+ assertType ('0| int<2, max> ' , count ($ list ));
32
32
if ($ item === false ) {
33
33
unset($ list [$ key ]);
34
- assertType ('int ' , count ($ list ));
34
+ assertType ('int<0, max> ' , count ($ list ));
35
35
}
36
36
37
- assertType ('int ' , count ($ list ));
37
+ assertType ('int<0, max> ' , count ($ list ));
38
38
39
39
if (count ($ list ) === 1 ) {
40
- assertType ('int ' , count ($ list ));
40
+ assertType ('int<1, max> ' , count ($ list ));
41
41
break ;
42
42
}
43
43
}
44
44
45
- assertType ('int ' , count ($ list ));
45
+ assertType ('int<0, max> ' , count ($ list ));
46
46
}
47
47
48
- assertType ('int ' , count ($ list ));
48
+ assertType ('int<0, max> ' , count ($ list ));
49
49
}
50
50
51
51
}
0 commit comments