mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +00:00
ignore PHPStan errors for PHP 7.4 compatability
This commit is contained in:
parent
68ce03797a
commit
053dc2bea5
2 changed files with 8 additions and 1 deletions
|
@ -23,3 +23,9 @@ parameters:
|
||||||
|
|
||||||
dynamicConstantNames:
|
dynamicConstantNames:
|
||||||
- DB_UPDATE_VERSION
|
- DB_UPDATE_VERSION
|
||||||
|
|
||||||
|
ignoreErrors:
|
||||||
|
-
|
||||||
|
# Ignore missing GdImage class in PHP 7.4
|
||||||
|
message: '(^Property .+ has unknown class GdImage as its type\.$)'
|
||||||
|
path: src
|
||||||
|
|
|
@ -13,6 +13,7 @@ use Friendica\Util\Images;
|
||||||
use Imagick;
|
use Imagick;
|
||||||
use ImagickDraw;
|
use ImagickDraw;
|
||||||
use ImagickPixel;
|
use ImagickPixel;
|
||||||
|
use GdImage;
|
||||||
use kornrunner\Blurhash\Blurhash;
|
use kornrunner\Blurhash\Blurhash;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +21,7 @@ use kornrunner\Blurhash\Blurhash;
|
||||||
*/
|
*/
|
||||||
class Image
|
class Image
|
||||||
{
|
{
|
||||||
/** @var Imagick|resource */
|
/** @var GdImage|Imagick|resource */
|
||||||
private $image;
|
private $image;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue