From d72d1ae07f91a3c1230e064acd4fd8c334ab237b Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Mon, 7 Oct 2024 11:03:34 +0200 Subject: [PATCH] Update baseline --- phpstan-baseline.neon | 45 +++++-------------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 09cadb6f..d3498393 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -15,46 +15,11 @@ parameters: count: 1 path: src/Drivers/Gd/GdDriver.php - - - message: "#^Parameter \\#1 \\$dst_image of function imagecopyresampled expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#1 \\$exif of method Spatie\\\\Image\\\\Drivers\\\\Gd\\\\GdDriver\\:\\:getOrientationFromExif\\(\\) expects array\\{Orientation\\?\\: int\\}, array\\ given\\.$#" count: 1 path: src/Drivers/Gd/GdDriver.php - - - message: "#^Parameter \\#1 \\$image of function imagealphablending expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - - - message: "#^Parameter \\#1 \\$image of function imagecolorallocatealpha expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - - - message: "#^Parameter \\#1 \\$image of function imagecolorsforindex expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - - - message: "#^Parameter \\#1 \\$image of function imagecolortransparent expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - - - message: "#^Parameter \\#1 \\$image of function imagefill expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - - - message: "#^Parameter \\#1 \\$image of function imagesavealpha expects GdImage, GdImage\\|false given\\.$#" - count: 1 - path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 1 @@ -76,12 +41,12 @@ parameters: path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#2 \\$color of function imagecolorsforindex expects int, int\\|false given\\.$#" + message: "#^Parameter \\#2 \\$color of function imagecolorsforindex expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\|false given\\.$#" + message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 path: src/Drivers/Gd/GdDriver.php @@ -91,18 +56,18 @@ parameters: path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#4 \\$color of function imagefill expects int, int\\|false given\\.$#" + message: "#^Parameter \\#4 \\$color of function imagefill expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: src/Drivers/Gd/GdDriver.php - - message: "#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\|false given\\.$#" + message: "#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: src/Drivers/Gd/GdDriver.php - message: "#^Property Spatie\\\\Image\\\\Drivers\\\\Gd\\\\GdDriver\\:\\:\\$image \\(GdImage\\) does not accept GdImage\\|false\\.$#" - count: 5 + count: 4 path: src/Drivers/Gd/GdDriver.php -