mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
improve pg_fetch return types (#4777)
This commit is contained in:
parent
5bce554cbb
commit
ca26acd31e
@ -9834,10 +9834,10 @@ return [
|
|||||||
'pg_exec' => ['resource|false', 'connection'=>'resource', 'query'=>'string'],
|
'pg_exec' => ['resource|false', 'connection'=>'resource', 'query'=>'string'],
|
||||||
'pg_execute' => ['resource|false', 'connection'=>'resource', 'statement_name'=>'string', 'params'=>'array'],
|
'pg_execute' => ['resource|false', 'connection'=>'resource', 'statement_name'=>'string', 'params'=>'array'],
|
||||||
'pg_execute\'1' => ['resource|false', 'connection'=>'string', 'statement_name'=>'array'],
|
'pg_execute\'1' => ['resource|false', 'connection'=>'string', 'statement_name'=>'array'],
|
||||||
'pg_fetch_all' => ['array|false', 'result'=>'resource', 'mode='=>'int'],
|
'pg_fetch_all' => ['array<array>|false', 'result'=>'resource', 'mode='=>'int'],
|
||||||
'pg_fetch_all_columns' => ['array|false', 'result'=>'resource', 'field='=>'int'],
|
'pg_fetch_all_columns' => ['array|false', 'result'=>'resource', 'field='=>'int'],
|
||||||
'pg_fetch_array' => ['array|false', 'result'=>'resource', 'row='=>'?int', 'mode='=>'int'],
|
'pg_fetch_array' => ['array<string|null>|false', 'result'=>'resource', 'row='=>'?int', 'mode='=>'int'],
|
||||||
'pg_fetch_assoc' => ['array|false', 'result'=>'resource', 'row='=>'?int'],
|
'pg_fetch_assoc' => ['array<string, mixed>|false', 'result'=>'resource', 'row='=>'?int'],
|
||||||
'pg_fetch_object' => ['object', 'result'=>'resource', 'row='=>'?int', 'class='=>'int'],
|
'pg_fetch_object' => ['object', 'result'=>'resource', 'row='=>'?int', 'class='=>'int'],
|
||||||
'pg_fetch_object\'1' => ['object', 'result'=>'resource', 'row='=>'?int', 'class='=>'string', 'constructor_args='=>'array'],
|
'pg_fetch_object\'1' => ['object', 'result'=>'resource', 'row='=>'?int', 'class='=>'string', 'constructor_args='=>'array'],
|
||||||
'pg_fetch_result' => ['string', 'result'=>'resource', 'row'=>'string|int'],
|
'pg_fetch_result' => ['string', 'result'=>'resource', 'row'=>'string|int'],
|
||||||
|
Loading…
Reference in New Issue
Block a user