Skip to content

Commit

Permalink
Use more precise return types for getimagesize and getimagesizefromst…
Browse files Browse the repository at this point in the history
…ring

- Key 0 (the image width) is always positive
- Key 1 (the image height) is always positive
- Key 2 is always one of the `IMAGETYPE_*` constants
  • Loading branch information
MidnightDesign committed Jul 11, 2024
1 parent d50c93e commit 0e56479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dictionaries/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3304,8 +3304,8 @@
'gethostbyname' => ['string', 'hostname'=>'string'],
'gethostbynamel' => ['list<string>|false', 'hostname'=>'string'],
'gethostname' => ['string|false'],
'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'],
'getimagesize' => ['array{0: positive-int, 1: positive-int, 2: IMAGETYPE_*, 3: string, mime: string, channels?: 3|4, bits?: int}|false', 'filename'=>'string', '&w_image_info='=>'array'],
'getimagesizefromstring' => ['array{0: positive-int, 1: positive-int, 2: IMAGETYPE_*, 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<int, string>', '&w_weights='=>'array<int, int>'],
'getmygid' => ['int|false'],
Expand Down

0 comments on commit 0e56479

Please sign in to comment.