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 {