]> git.mxchange.org Git - friendica.git/commitdiff
ignore PHPStan errors for PHP 7.4 compatability
authorArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:31:24 +0000 (14:31 +0000)
committerArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:31:24 +0000 (14:31 +0000)
.phpstan.neon
src/Object/Image.php

index 28df3dbcc4a78d81f12ab27916677cbb31c4c2b1..de35beae925d14a88c291f8331b81a8b070c6003 100644 (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
index 2f172df58cb86838d5c5d2faf8c844850e721612..43b6d916070d72c2a795847bc15e0c0b86e7f640 100644 (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;
 
        /*