From f8eb85d14cb1446e9f7ac972f4e6f0d1911c773b Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 3 Aug 2025 16:44:37 +0200 Subject: [PATCH] Set phpstan level --- phpstan.dist.neon | 2 +- src/Drivers/Gd/Cloner.php | 2 ++ src/Drivers/Gd/Frame.php | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/phpstan.dist.neon b/phpstan.dist.neon index fc55fa09..d4687cf4 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -1,5 +1,5 @@ parameters: - level: 7 + level: 6 paths: - src reportUnmatchedIgnoredErrors: false diff --git a/src/Drivers/Gd/Cloner.php b/src/Drivers/Gd/Cloner.php index 5cd6a636..29bf2997 100644 --- a/src/Drivers/Gd/Cloner.php +++ b/src/Drivers/Gd/Cloner.php @@ -19,6 +19,7 @@ class Cloner * Create a clone of the given GdImage * * @throws ColorException + * @throws GeometryException */ public static function clone(GdImage $gd): GdImage { @@ -82,6 +83,7 @@ class Cloner * Possible transparent areas are mixed with this color. * * @throws ColorException + * @throws GeometryException */ public static function cloneBlended(GdImage $gd, ColorInterface $background): GdImage { diff --git a/src/Drivers/Gd/Frame.php b/src/Drivers/Gd/Frame.php index e344f53f..84690721 100644 --- a/src/Drivers/Gd/Frame.php +++ b/src/Drivers/Gd/Frame.php @@ -7,6 +7,7 @@ namespace Intervention\Image\Drivers\Gd; use GdImage; use Intervention\Image\Drivers\AbstractFrame; use Intervention\Image\Exceptions\ColorException; +use Intervention\Image\Exceptions\GeometryException; use Intervention\Image\Exceptions\InputException; use Intervention\Image\Geometry\Rectangle; use Intervention\Image\Image; @@ -185,6 +186,7 @@ class Frame extends AbstractFrame implements FrameInterface * This workaround helps cloning GdImages which is currently not possible. * * @throws ColorException + * @throws GeometryException */ public function __clone(): void {