Skip to content

Commit 119facc

Browse files
committed
Use positive-int in parameters only on PHP 8
1 parent 2f1615b commit 119facc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11696,7 +11696,7 @@
1169611696
'str_replace' => ['string|array', 'search'=>'string|array', 'replace'=>'string|array', 'subject'=>'string|array', '&w_replace_count='=>'int'],
1169711697
'str_rot13' => ['string', 'str'=>'string'],
1169811698
'str_shuffle' => ['string', 'str'=>'string'],
11699-
'str_split' => ['array<int,string>|false', 'str'=>'string', 'split_length='=>'positive-int'],
11699+
'str_split' => ['array<int,string>|false', 'str'=>'string', 'split_length='=>'int'],
1170011700
'str_word_count' => ['array<int,string>|int|false', 'string'=>'string', 'format='=>'int', 'charlist='=>'string'],
1170111701
'strcasecmp' => ['int', 'str1'=>'string', 'str2'=>'string'],
1170211702
'strchr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'],

resources/functionMap_php74delta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'FFI::typeof' => ['FFI\CType', '&ptr'=>'FFI\CData'],
4040
'FFI::type' => ['FFI\CType', 'type'=>'string'],
4141
'get_mangled_object_vars' => ['array', 'obj'=>'object'],
42-
'mb_str_split' => ['array<int,string>|false', 'str'=>'string', 'split_length='=>'positive-int', 'encoding='=>'string'],
42+
'mb_str_split' => ['array<int,string>|false', 'str'=>'string', 'split_length='=>'int', 'encoding='=>'string'],
4343
'password_algos' => ['array<int, string>'],
4444
'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'string|null', 'options='=>'array'],
4545
'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'string|null', 'options='=>'array'],

0 commit comments

Comments
 (0)