ignore PHPStan errors for PHP 7.4 compatability

This commit is contained in:
Art4 2024-12-07 14:31:24 +00:00
parent 68ce03797a
commit 053dc2bea5
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -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;
/*