]> git.mxchange.org Git - friendica.git/commitdiff
Ignore missing IMAP\Connection class in PHP 7.4 and 8.0
authorArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:35:59 +0000 (14:35 +0000)
committerArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:35:59 +0000 (14:35 +0000)
.phpstan.neon

index de35beae925d14a88c291f8331b81a8b070c6003..8978a15eb5d1580b71c1cc8dbc4d69e7961f7195 100644 (file)
@@ -26,6 +26,16 @@ parameters:
 
     ignoreErrors:
         -
-            # Ignore missing GdImage class in PHP 7.4
+            # Ignore missing GdImage class in PHP <= 7.4
             message: '(^Property .+ has unknown class GdImage as its type\.$)'
             path: src
+
+        -
+            # Ignore missing IMAP\Connection class in PHP <= 8.0
+            message: '(^Method .+ has invalid return type IMAP\\Connection\.$)'
+            path: src
+
+        -
+            # Ignore missing IMAP\Connection class in PHP <= 8.0
+            message: '(^Parameter .+ has invalid type IMAP\\Connection\.$)'
+            path: src