Skip to content

Commit eeb46c0

Browse files
staabmondrejmirtes
authored andcommitted
version_compare() operator-arg can be null
1 parent 3116a1b commit eeb46c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/functionMap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13075,7 +13075,7 @@
1307513075
'VarnishStat::__construct' => ['void', 'args='=>'array'],
1307613076
'VarnishStat::getSnapshot' => ['array'],
1307713077
'version_compare' => ['int', 'version1'=>'string', 'version2'=>'string'],
13078-
'version_compare\'1' => ['bool', 'version1'=>'string', 'version2'=>'string', 'operator'=>'string'],
13078+
'version_compare\'1' => ['bool', 'version1'=>'string', 'version2'=>'string', 'operator'=>'string|null'],
1307913079
'vfprintf' => ['int', 'stream'=>'resource', 'format'=>'string', 'args'=>'array<__stringAndStringable|int|float|null|bool>'],
1308013080
'virtual' => ['bool', 'uri'=>'string'],
1308113081
'Volatile::__construct' => ['void'],

resources/functionMap_php80delta.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
'strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'],
112112
'substr' => ['string', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
113113
'round' => ['float', 'number'=>'float', 'precision='=>'int', 'mode='=>'1|2|3|4'],
114-
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string'],
114+
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string|null'],
115115
'xml_parser_create' => ['XMLParser', 'encoding='=>'string'],
116116
'xml_parser_create_ns' => ['XMLParser', 'encoding='=>'string', 'sep='=>'string'],
117117
'xml_parser_free' => ['bool', 'parser'=>'XMLParser'],
@@ -249,7 +249,7 @@
249249
'strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'],
250250
'strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string|int', 'before_needle='=>'bool'],
251251
'substr' => ['__benevolent<string|false>', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
252-
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string'],
252+
'version_compare' => ['int|bool', 'version1'=>'string', 'version2'=>'string', 'operator='=>'string|null'],
253253
'xml_parser_create' => ['resource', 'encoding='=>'string'],
254254
'xml_parser_create_ns' => ['resource', 'encoding='=>'string', 'sep='=>'string'],
255255
'xml_parser_free' => ['bool', 'parser'=>'resource'],

0 commit comments

Comments
 (0)