Skip to content

Commit c044612

Browse files
committed
Applying list-shape to functionMap
1 parent 5765cb4 commit c044612

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

resources/functionMap.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@
29322932
'ffmpeg_movie::hasAudio' => ['bool'],
29332933
'ffmpeg_movie::hasVideo' => ['bool'],
29342934
'fgetc' => ['string|false', 'fp'=>'resource'],
2935-
'fgetcsv' => ['list<string>|array{0: null}|false|null', 'fp'=>'resource', 'length='=>'0|positive-int|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
2935+
'fgetcsv' => ['list<string>|list{null}|false|null', 'fp'=>'resource', 'length='=>'0|positive-int|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
29362936
'fgets' => ['string|false', 'fp'=>'resource', 'length='=>'0|positive-int'],
29372937
'fgetss' => ['string|false', 'fp'=>'resource', 'length='=>'0|positive-int', 'allowable_tags='=>'string'],
29382938
'file' => ['list<string>|false', 'filename'=>'string', 'flags='=>'int-mask<FILE_USE_INCLUDE_PATH|FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES|FILE_NO_DEFAULT_CONTEXT>', 'context='=>'resource'],
@@ -4534,8 +4534,8 @@
45344534
'image_type_to_mime_type' => ['string', 'imagetype'=>'int'],
45354535
'imageaffine' => ['resource|false', 'src'=>'resource', 'affine'=>'array', 'clip='=>'array'],
45364536
'imageaffineconcat' => ['array', 'm1'=>'array', 'm2'=>'array'],
4537-
'imageaffinematrixconcat' => ['array{0:float,1:float,2:float,3:float,4:float,5:float}|false', 'm1'=>'array', 'm2'=>'array'],
4538-
'imageaffinematrixget' => ['array{0:float,1:float,2:float,3:float,4:float,5:float}|false', 'type'=>'int', 'options'=>'array|float'],
4537+
'imageaffinematrixconcat' => ['list{float,float,float,float,float,float}|false', 'm1'=>'array', 'm2'=>'array'],
4538+
'imageaffinematrixget' => ['list{float,float,float,float,float,float}|false', 'type'=>'int', 'options'=>'array|float'],
45394539
'imagealphablending' => ['bool', 'im'=>'resource', 'on'=>'bool'],
45404540
'imageantialias' => ['bool', 'im'=>'resource', 'on'=>'bool'],
45414541
'imagearc' => ['bool', 'im'=>'resource', 'cx'=>'int', 'cy'=>'int', 'w'=>'int', 'h'=>'int', 's'=>'int', 'e'=>'int', 'col'=>'int'],
@@ -4682,9 +4682,9 @@
46824682
'Imagick::colorMatrixImage' => ['bool', 'color_matrix'=>'array'],
46834683
'Imagick::combineImages' => ['Imagick', 'channeltype'=>'Imagick::CHANNEL_*'],
46844684
'Imagick::commentImage' => ['bool', 'comment'=>'string'],
4685-
'Imagick::compareImageChannels' => ['array{Imagick,float}', 'image'=>'imagick', 'channeltype'=>'Imagick::CHANNEL_*', 'metrictype'=>'Imagick::METRIC_*'],
4685+
'Imagick::compareImageChannels' => ['list{Imagick,float}', 'image'=>'imagick', 'channeltype'=>'Imagick::CHANNEL_*', 'metrictype'=>'Imagick::METRIC_*'],
46864686
'Imagick::compareImageLayers' => ['Imagick', 'method'=>'Imagick::LAYERMETHOD_*'],
4687-
'Imagick::compareImages' => ['array{Imagick,float}', 'compare'=>'imagick', 'metric'=>'Imagick::METRIC_*'],
4687+
'Imagick::compareImages' => ['list{Imagick,float}', 'compare'=>'imagick', 'metric'=>'Imagick::METRIC_*'],
46884688
'Imagick::compositeImage' => ['bool', 'composite_object'=>'imagick', 'composite'=>'Imagick::COMPOSITE_*', 'x'=>'int', 'y'=>'int', 'channel='=>'Imagick::CHANNEL_*'],
46894689
'Imagick::compositeImageGravity' => ['bool', 'imagick'=>'Imagick', 'COMPOSITE_CONSTANT'=>'int', 'GRAVITY_CONSTANT'=>'int'],
46904690
'Imagick::contrastImage' => ['bool', 'sharpen'=>'bool'],
@@ -9543,7 +9543,7 @@
95439543
'Redis::geoadd' => ['__benevolent<Redis|int|false>', 'key'=>'string', 'lng'=>'float', 'lat'=>'float', 'member'=>'string', '...other_triples_and_options='=>'mixed'],
95449544
'Redis::geodist' => ['__benevolent<Redis|float|false>', 'key'=>'string', 'member'=>'string', '...other_members='=>'string'],
95459545
'Redis::geohash' => ['__benevolent<Redis|array<int,string>|false>', 'key'=>'string', 'member'=>'string', '...other_members='=>'string'],
9546-
'Redis::geopos' => ['__benevolent<Redis|array<int,array{0:string,1:string}>|false>', 'key'=>'string', 'member'=>'string', '...other_members'=>'string'],
9546+
'Redis::geopos' => ['__benevolent<Redis|array<int,list{string,string}>|false>', 'key'=>'string', 'member'=>'string', '...other_members'=>'string'],
95479547
'Redis::georadius' => ['__benevolent<Redis|array<int,mixed>>', 'key'=>'string', 'lng'=>'float', 'lat'=>'float', 'radius'=>'float', 'unit'=>'string', 'options='=>'array<string,mixed>'],
95489548
'Redis::georadiusbymember' => ['__benevolent<Redis|array<int,mixed>>', 'key'=>'string', 'lng'=>'float', 'lat'=>'float', 'radius'=>'float', 'unit'=>'string', 'options='=>'array<string,mixed>'],
95499549
'Redis::georadiusbymember_ro' => ['__benevolent<Redis|array<int,mixed>>', 'key'=>'string', 'lng'=>'float', 'lat'=>'float', 'radius'=>'float', 'unit'=>'string', 'options='=>'array<string,mixed>'],
@@ -9567,7 +9567,7 @@
95679567
'Redis::getReadTimeout' => ['float'],
95689568
'Redis::getset' => ['__benevolent<Redis|string|false>', 'key'=>'string', 'value'=>'mixed'],
95699569
'Redis::getTimeout' => ['float|false'],
9570-
'Redis::getTransferredBytes' => ['array<int,array{0:int,1:int}>'],
9570+
'Redis::getTransferredBytes' => ['array<int,list{int,int}>'],
95719571
'Redis::hDel' => ['__benevolent<Redis|int|false>', 'key'=>'string', 'field'=>'string', '...other_fields='=>'string'],
95729572
'Redis::hExists' => ['__benevolent<Redis|bool>', 'key'=>'string', 'field'=>'string'],
95739573
'Redis::hGet' => ['__benevolent<Redis|string|false>', 'key'=>'string', 'member'=>'string'],
@@ -9693,7 +9693,7 @@
96939693
'Redis::sUnionStore' => ['__benevolent<Redis|int|false>', 'dst'=>'string', 'key'=>'string', '...other_keys='=>'string'],
96949694
'Redis::sunsubscribe' => ['__benevolent<Redis|string[]|false>', 'channels'=>'string[]'],
96959695
'Redis::swapdb' => ['__benevolent<Redis|bool>', 'src'=>'int', 'dst'=>'int'],
9696-
'Redis::time' => ['__benevolent<Redis|array{0:int,1:int}>'],
9696+
'Redis::time' => ['__benevolent<Redis|list{int,int}>'],
96979697
'Redis::ttl' => ['__benevolent<Redis|-2|-1|int|false>', 'key'=>'string'],
96989698
'Redis::type' => ['__benevolent<Redis|int|false>', 'key'=>'string'],
96999699
'Redis::unlink' => ['__benevolent<Redis|0|positive-int|false>', 'key'=>'string[]|string', '...other_keys'=>'string'],
@@ -11575,7 +11575,7 @@
1157511575
'SplFileObject::fflush' => ['bool'],
1157611576
'SplFileObject::fgetc' => ['string|false'],
1157711577
// Do not believe https://www.php.net/manual/en/splfileobject.fgetcsv#refsect1-splfileobject.fgetcsv-returnvalues
11578-
'SplFileObject::fgetcsv' => ['list<string>|array{0: null}|false|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
11578+
'SplFileObject::fgetcsv' => ['list<string>|list{null}|false|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
1157911579
'SplFileObject::fgets' => ['string'],
1158011580
'SplFileObject::fgetss' => ['string|false', 'allowable_tags='=>'string'],
1158111581
'SplFileObject::flock' => ['bool', 'operation'=>'int-mask<LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB>', '&w_wouldblock='=>'0|1'],
@@ -12602,7 +12602,7 @@
1260212602
'timezone_transitions_get' => ['list<array{ts: int, time: string, offset: int, isdst: bool, abbr: string}>|false', 'object'=>'DateTimeZone', 'timestamp_begin='=>'int', 'timestamp_end='=>'int'],
1260312603
'timezone_version_get' => ['string'],
1260412604
'tmpfile' => ['__benevolent<resource|false>'],
12605-
'token_get_all' => ['list<string|array{0:int,1:string,2:int}>', 'source'=>'string', 'flags='=>'int'],
12605+
'token_get_all' => ['list<string|list{int,string,int}>', 'source'=>'string', 'flags='=>'int'],
1260612606
'token_name' => ['non-falsy-string', 'type'=>'int'],
1260712607
'TokyoTyrant::__construct' => ['void', 'host='=>'string', 'port='=>'int', 'options='=>'array'],
1260812608
'TokyoTyrant::add' => ['int|float', 'key'=>'string', 'increment'=>'float', 'type='=>'int'],

resources/functionMap_php80delta.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'error_log' => ['bool', 'message'=>'string', 'message_type='=>'0|1|3|4', 'destination='=>'string', 'extra_headers='=>'string'],
4747
'explode' => ['list<string>', 'separator'=>'non-empty-string', 'str'=>'string', 'limit='=>'int'],
4848
'fdiv' => ['float', 'dividend'=>'float', 'divisor'=>'float'],
49-
'fgetcsv' => ['list<string>|array{0: null}|false', 'fp'=>'resource', 'length='=>'0|positive-int|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
49+
'fgetcsv' => ['list<string>|list{null}|false', 'fp'=>'resource', 'length='=>'0|positive-int|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
5050
'filter_input' => ['mixed', 'type'=>'INPUT_GET|INPUT_POST|INPUT_COOKIE|INPUT_SERVER|INPUT_ENV', 'variable_name'=>'string', 'filter='=>'int', 'options='=>'array|int'],
5151
'filter_input_array' => ['array|false|null', 'type'=>'INPUT_GET|INPUT_POST|INPUT_COOKIE|INPUT_SERVER|INPUT_ENV', 'definition='=>'int|array', 'add_empty='=>'bool'],
5252
'floor' => ['float', 'number'=>'float'],

0 commit comments

Comments
 (0)