1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-27 15:50:09 +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:
level: 7
level: 6
paths:
- src
reportUnmatchedIgnoredErrors: false

View File

@@ -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
{

View File

@@ -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
{