1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-28 08:09:54 +02:00

Set phpstan level

This commit is contained in:
Oliver Vogel
2025-08-03 16:44:37 +02:00
parent 3063a07784
commit f8eb85d14c
3 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
parameters: parameters:
level: 7 level: 6
paths: paths:
- src - src
reportUnmatchedIgnoredErrors: false reportUnmatchedIgnoredErrors: false

View File

@@ -19,6 +19,7 @@ class Cloner
* Create a clone of the given GdImage * Create a clone of the given GdImage
* *
* @throws ColorException * @throws ColorException
* @throws GeometryException
*/ */
public static function clone(GdImage $gd): GdImage public static function clone(GdImage $gd): GdImage
{ {
@@ -82,6 +83,7 @@ class Cloner
* Possible transparent areas are mixed with this color. * Possible transparent areas are mixed with this color.
* *
* @throws ColorException * @throws ColorException
* @throws GeometryException
*/ */
public static function cloneBlended(GdImage $gd, ColorInterface $background): GdImage public static function cloneBlended(GdImage $gd, ColorInterface $background): GdImage
{ {

View File

@@ -7,6 +7,7 @@ namespace Intervention\Image\Drivers\Gd;
use GdImage; use GdImage;
use Intervention\Image\Drivers\AbstractFrame; use Intervention\Image\Drivers\AbstractFrame;
use Intervention\Image\Exceptions\ColorException; use Intervention\Image\Exceptions\ColorException;
use Intervention\Image\Exceptions\GeometryException;
use Intervention\Image\Exceptions\InputException; use Intervention\Image\Exceptions\InputException;
use Intervention\Image\Geometry\Rectangle; use Intervention\Image\Geometry\Rectangle;
use Intervention\Image\Image; use Intervention\Image\Image;
@@ -185,6 +186,7 @@ class Frame extends AbstractFrame implements FrameInterface
* This workaround helps cloning GdImages which is currently not possible. * This workaround helps cloning GdImages which is currently not possible.
* *
* @throws ColorException * @throws ColorException
* @throws GeometryException
*/ */
public function __clone(): void public function __clone(): void
{ {