Skip to content

Commit 430620c

Browse files
staabmondrejmirtes
authored andcommitted
Refine *strlen() return type to exclude negative integers
1 parent 325ce56 commit 430620c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/functionMap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@
36383638
'grapheme_extract' => ['string|false', 'str'=>'string', 'size'=>'int', 'extract_type='=>'int', 'start='=>'int', '&w_next='=>'int'],
36393639
'grapheme_stripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
36403640
'grapheme_stristr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'part='=>'bool'],
3641-
'grapheme_strlen' => ['int|false', 'str'=>'string'],
3641+
'grapheme_strlen' => ['0|positive-int|false', 'str'=>'string'],
36423642
'grapheme_strpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
36433643
'grapheme_strripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
36443644
'grapheme_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],
@@ -4448,7 +4448,7 @@
44484448
'iconv_mime_decode_headers' => ['array|false', 'headers'=>'string', 'mode='=>'int', 'charset='=>'string'],
44494449
'iconv_mime_encode' => ['string|false', 'field_name'=>'string', 'field_value'=>'string', 'preference='=>'array'],
44504450
'iconv_set_encoding' => ['bool', 'type'=>'string', 'charset'=>'string'],
4451-
'iconv_strlen' => ['int|false', 'str'=>'string', 'charset='=>'string'],
4451+
'iconv_strlen' => ['0|positive-int|false', 'str'=>'string', 'charset='=>'string'],
44524452
'iconv_strpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'charset='=>'string'],
44534453
'iconv_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'charset='=>'string'],
44544454
'iconv_substr' => ['string|false', 'str'=>'string', 'offset'=>'int', 'length='=>'int', 'charset='=>'string'],
@@ -9395,7 +9395,7 @@
93959395
'Redis::sRem' => ['int', 'key'=>'string', 'member1'=>'string', '...other_members='=>'string'],
93969396
'Redis::sRemove' => ['int', 'key'=>'string', 'member1'=>'string', '...other_members='=>'string'],
93979397
'Redis::sScan' => ['array|bool', 'key'=>'string', '&iterator'=>'int', 'pattern='=>'string', 'count='=>'int'],
9398-
'Redis::strLen' => ['int', 'key'=>'string'],
9398+
'Redis::strLen' => ['0|positive-int', 'key'=>'string'],
93999399
'Redis::subscribe' => ['mixed|null', 'channels'=>'array', 'callback'=>'string|array'],
94009400
'Redis::substr' => ['', 'key'=>'string', 'start'=>'int', 'end'=>'int'],
94019401
'Redis::sUnion' => ['array', 'key'=>'string', '...other_keys='=>'string'],
@@ -9585,7 +9585,7 @@
95859585
'RedisCluster::sRandMember' => ['array|string', 'key'=>'string', 'count='=>'int'],
95869586
'RedisCluster::sRem' => ['int', 'key'=>'string', 'member1'=>'string', '...other_members='=>'string'],
95879587
'RedisCluster::sScan' => ['array', 'key'=>'string', '&iterator'=>'int', 'pattern='=>'null', 'count='=>'int'],
9588-
'RedisCluster::strlen' => ['int', 'key'=>'string'],
9588+
'RedisCluster::strlen' => ['0|positive-int', 'key'=>'string'],
95899589
'RedisCluster::subscribe' => ['mixed', 'channels'=>'array', 'callback'=>'string'],
95909590
'RedisCluster::sUnion' => ['array', 'key1'=>'string', '...other_keys='=>'string'],
95919591
'RedisCluster::sUnionStore' => ['int', 'dstKey'=>'string', 'key1'=>'string', '...other_keys='=>'string'],

0 commit comments

Comments
 (0)