Skip to content

Commit 4d3ecd7

Browse files
committed
Improve types for range()
1 parent b908f44 commit 4d3ecd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dictionaries/CallMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9625,7 +9625,7 @@
96259625
'rand\'1' => ['int'],
96269626
'random_bytes' => ['non-empty-string', 'length'=>'positive-int'],
96279627
'random_int' => ['int', 'min'=>'int', 'max'=>'int'],
9628-
'range' => ['array', 'start'=>'mixed', 'end'=>'mixed', 'step='=>'int|float'],
9628+
'range' => ['non-empty-array', 'start'=>'string|int|float', 'end'=>'string|int|float', 'step='=>'int<1, max>|float'],
96299629
'RangeException::__clone' => ['void'],
96309630
'RangeException::__construct' => ['void', 'message='=>'string', 'code='=>'int', 'previous='=>'?Throwable'],
96319631
'RangeException::__toString' => ['string'],

dictionaries/CallMap_historical.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13731,7 +13731,7 @@
1373113731
'rand\'1' => ['int'],
1373213732
'random_bytes' => ['non-empty-string', 'length'=>'positive-int'],
1373313733
'random_int' => ['int', 'min'=>'int', 'max'=>'int'],
13734-
'range' => ['array', 'start'=>'mixed', 'end'=>'mixed', 'step='=>'int|float'],
13734+
'range' => ['non-empty-array', 'start'=>'string|int|float', 'end'=>'string|int|float', 'step='=>'int<1, max>|float'],
1373513735
'rar_allow_broken_set' => ['bool', 'rarfile'=>'RarArchive', 'allow_broken'=>'bool'],
1373613736
'rar_broken_is' => ['bool', 'rarfile'=>'rararchive'],
1373713737
'rar_close' => ['bool', 'rarfile'=>'rararchive'],

0 commit comments

Comments
 (0)