Skip to content

Commit adc504d

Browse files
claudepacheondrejmirtes
authored andcommitted
more precise return type for strspn and strcspn
1 parent b28ab38 commit adc504d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/functionMap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11987,7 +11987,7 @@
1198711987
'strchr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'],
1198811988
'strcmp' => ['int<-1, 1>', 'str1'=>'string', 'str2'=>'string'],
1198911989
'strcoll' => ['int<-1, 1>', 'str1'=>'string', 'str2'=>'string'],
11990-
'strcspn' => ['int', 'str'=>'string', 'mask'=>'string', 'start='=>'int', 'length='=>'int'],
11990+
'strcspn' => ['non-negative-int', 'str'=>'string', 'mask'=>'string', 'start='=>'int', 'length='=>'int'],
1199111991
'stream_bucket_append' => ['void', 'brigade'=>'resource', 'bucket'=>'object'],
1199211992
'stream_bucket_make_writeable' => ['stdClass|null', 'brigade'=>'resource'],
1199311993
'stream_bucket_new' => ['object', 'stream'=>'resource', 'buffer'=>'string'],
@@ -12078,7 +12078,7 @@
1207812078
'strrev' => ['string', 'str'=>'string'],
1207912079
'strripos' => ['0|positive-int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
1208012080
'strrpos' => ['0|positive-int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
12081-
'strspn' => ['int', 'str'=>'string', 'mask'=>'string', 'start='=>'int', 'len='=>'int'],
12081+
'strspn' => ['non-negative-int', 'str'=>'string', 'mask'=>'string', 'start='=>'int', 'len='=>'int'],
1208212082
'strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'mixed', 'before_needle='=>'bool'],
1208312083
'strtok' => ['non-empty-string|false', 'str'=>'string', 'token'=>'string'],
1208412084
'strtok\'1' => ['non-empty-string|false', 'token'=>'string'],

0 commit comments

Comments
 (0)