mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Merge pull request #9875 from robchett/getimagesize_return_type
Improve the return types for getimagesize and getimagesizefromstring
This commit is contained in:
commit
99a54fb7bb
@ -3311,8 +3311,8 @@ return [
|
||||
'gethostbyname' => ['string', 'hostname'=>'string'],
|
||||
'gethostbynamel' => ['list<string>|false', 'hostname'=>'string'],
|
||||
'gethostname' => ['string|false'],
|
||||
'getimagesize' => ['array|false', 'filename'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesizefromstring' => ['array|false', 'string'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesize' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: 3|4, bits?: int}|false', 'filename'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesizefromstring' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: 3|4, bits?: int}|false', 'string'=>'string', '&w_image_info='=>'array'],
|
||||
'getlastmod' => ['int|false'],
|
||||
'getmxrr' => ['bool', 'hostname'=>'string', '&w_hosts'=>'array', '&w_weights='=>'array'],
|
||||
'getmygid' => ['int|false'],
|
||||
|
@ -10709,8 +10709,8 @@ return [
|
||||
'gethostbyname' => ['string', 'hostname'=>'string'],
|
||||
'gethostbynamel' => ['list<string>|false', 'hostname'=>'string'],
|
||||
'gethostname' => ['string|false'],
|
||||
'getimagesize' => ['array|false', 'filename'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesizefromstring' => ['array|false', 'string'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesize' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: 3|4, bits?: int}|false', 'filename'=>'string', '&w_image_info='=>'array'],
|
||||
'getimagesizefromstring' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: 3|4, bits?: int}|false', 'string'=>'string', '&w_image_info='=>'array'],
|
||||
'getlastmod' => ['int|false'],
|
||||
'getmxrr' => ['bool', 'hostname'=>'string', '&w_hosts'=>'array', '&w_weights='=>'array'],
|
||||
'getmygid' => ['int|false'],
|
||||
|
Loading…
Reference in New Issue
Block a user