1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Merge pull request #8403 from paulfedorow/imageinterlace-callmap-fix-4.x

Fix `imageinterlace` function signature
This commit is contained in:
orklah 2022-08-12 18:29:19 +02:00 committed by GitHub
commit 24b8b8e6ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -5410,7 +5410,7 @@ return [
'imagegif' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null'],
'imagegrabscreen' => ['false|GdImage'],
'imagegrabwindow' => ['false|GdImage', 'handle'=>'int', 'client_area='=>'int'],
'imageinterlace' => ['int|false', 'image'=>'GdImage', 'enable='=>'int'],
'imageinterlace' => ['bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
'imageistruecolor' => ['bool', 'image'=>'GdImage'],
'imagejpeg' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int'],
'imagelayereffect' => ['bool', 'image'=>'GdImage', 'effect'=>'int'],

View File

@ -647,7 +647,7 @@ return [
],
'imageinterlace' => [
'old' => ['int|false', 'image'=>'resource', 'enable='=>'int'],
'new' => ['int|false', 'image'=>'GdImage', 'enable='=>'int'],
'new' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
],
'imageistruecolor' => [
'old' => ['bool', 'image'=>'resource'],

View File

@ -233,6 +233,10 @@ return [
'old' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'],
'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array'],
],
'imageinterlace' => [
'old' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
'new' => ['bool', 'image'=>'GdImage', 'enable='=>'bool|null'],
],
'imap_append' => [
'old' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'],
'new' => ['bool', 'imap'=>'IMAP\Connection', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'],

View File

@ -112,7 +112,6 @@ class InternalCallMapHandlerTest extends TestCase
'imagefilter',
'imagegd',
'imagegd2',
'imageinterlace',
'imageopenpolygon',
'imagepolygon',
'imagerotate',