ignore PHPStan errors for PHP 7.4 compatability

pull/14590/head
Art4 2024-12-07 14:31:24 +00:00
rodzic 68ce03797a
commit 053dc2bea5
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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