From da489d4b27fbc1028365edf6398d8a8774ac44a9 Mon Sep 17 00:00:00 2001 From: Takefumi Katsuren <8064892+k2rn@users.noreply.github.com> Date: Mon, 25 Nov 2019 10:15:05 +0900 Subject: [PATCH] imagepng accepts resource at Argument 2 (#2373) --- src/Psalm/Internal/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/CallMap.php b/src/Psalm/Internal/CallMap.php index abd4a9585..6c5a7fc3b 100644 --- a/src/Psalm/Internal/CallMap.php +++ b/src/Psalm/Internal/CallMap.php @@ -5308,7 +5308,7 @@ return [ 'imageopenpolygon' => ['bool', 'image'=>'resource', 'points'=>'array', 'num_points'=>'int', 'color'=>'int'], 'imagepalettecopy' => ['void', 'dst'=>'resource', 'src'=>'resource'], 'imagepalettetotruecolor' => ['bool', 'src'=>'resource'], -'imagepng' => ['bool', 'im'=>'resource', 'filename='=>'?string', 'quality='=>'int', 'filters='=>'int'], +'imagepng' => ['bool', 'im'=>'resource', 'filename='=>'?string|?resource', 'quality='=>'int', 'filters='=>'int'], 'imagepolygon' => ['bool', 'im'=>'resource', 'point'=>'array', 'num_points'=>'int', 'col'=>'int'], 'imagerectangle' => ['bool', 'im'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'col'=>'int'], 'imageresolution' => ['array|bool', 'image'=>'resource', 'res_x='=>'int', 'res_y='=>'int'],