Skip to content

Commit c456e0e

Browse files
author
Matt S
authored
fix: udpate some mysqli function return types
1 parent 3fe871e commit c456e0e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

resources/functionMap.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7475,9 +7475,10 @@
74757475
'mysqli_errno' => ['int', 'link'=>'mysqli'],
74767476
'mysqli_error' => ['string|null', 'link'=>'mysqli'],
74777477
'mysqli_error_list' => ['array', 'connection'=>'mysqli'],
7478-
'mysqli_fetch_all' => ['array|false', 'result'=>'mysqli_result', 'resulttype='=>'int'],
7478+
'mysqli_fetch_all' => ['array', 'result'=>'mysqli_result', 'resulttype='=>'int'],
74797479
'mysqli_fetch_array' => ['array|null|false', 'result'=>'mysqli_result', 'resulttype='=>'int'],
7480-
'mysqli_fetch_assoc' => ['array<string,string>|null', 'result'=>'mysqli_result'],
7480+
'mysqli_fetch_assoc' => ['array<string,string|int|float|null>|null|false', 'result'=>'mysqli_result'],
7481+
'mysqli_fetch_column' => ['null|int|float|string|false', 'column'=>'int'],
74817482
'mysqli_fetch_field' => ['(stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int})|false', 'result'=>'mysqli_result'],
74827483
'mysqli_fetch_field_direct' => ['(stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int})|false', 'result'=>'mysqli_result', 'fieldnr'=>'int'],
74837484
'mysqli_fetch_fields' => ['list<stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int}>', 'result'=>'mysqli_result'],
@@ -7527,8 +7528,9 @@
75277528
'mysqli_result::close' => ['void'],
75287529
'mysqli_result::data_seek' => ['bool', 'offset'=>'int'],
75297530
'mysqli_result::fetch_all' => ['array', 'resulttype='=>'int'],
7530-
'mysqli_result::fetch_array' => ['array|null', 'resulttype='=>'int'],
7531-
'mysqli_result::fetch_assoc' => ['array<string,string>|null'],
7531+
'mysqli_result::fetch_array' => ['array|null|false', 'resulttype='=>'int'],
7532+
'mysqli_result::fetch_assoc' => ['array<string,string|int|float|null>|null|false'],
7533+
'mysqli_result::fetch_column' => ['null|int|float|string|false', 'column'=>'int'],
75327534
'mysqli_result::fetch_field' => ['(stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int})|false'],
75337535
'mysqli_result::fetch_field_direct' => ['(stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int})|false', 'fieldnr'=>'int'],
75347536
'mysqli_result::fetch_fields' => ['list<stdClass&object{name: string, orgname: string, table: string, orgtable: string, def: string, db: string, catalog: "def", max_length: int, length: int, charsetnr: string, flags: int, type: int, decimals: int}>'],

0 commit comments

Comments
 (0)