mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +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:
|
||||
- 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 ImagickDraw;
|
||||
use ImagickPixel;
|
||||
use GdImage;
|
||||
use kornrunner\Blurhash\Blurhash;
|
||||
|
||||
/**
|
||||
|
@ -20,7 +21,7 @@ use kornrunner\Blurhash\Blurhash;
|
|||
*/
|
||||
class Image
|
||||
{
|
||||
/** @var Imagick|resource */
|
||||
/** @var GdImage|Imagick|resource */
|
||||
private $image;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue