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:
@@ -1,5 +1,5 @@
|
||||
parameters:
|
||||
level: 7
|
||||
level: 6
|
||||
paths:
|
||||
- src
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user