]> git.mxchange.org Git - friendica.git/commitdiff
Ignore type mismatches of BaseModule and BaseRepository properties in child classes
authorArt4 <art4@wlabs.de>
Fri, 13 Jun 2025 12:29:36 +0000 (12:29 +0000)
committerArt4 <art4@wlabs.de>
Fri, 13 Jun 2025 12:29:36 +0000 (12:29 +0000)
.phpstan.neon

index 15d3ec15fb5a7d683c34d72fa630fe9d7247559c..201d6acb39a6d6522e34bb4558811673ebd588f0 100644 (file)
@@ -45,3 +45,17 @@ parameters:
             # Ignore missing IMAP\Connection class in PHP <= 8.0
             message: '(^Parameter .+ has invalid type IMAP\\Connection\.$)'
             path: src
+
+        -
+            # #Fixme: Ignore type mismatch of BaseRepository::$factory in child classes
+            message: '#^PHPDoc type Friendica\\.+ of property Friendica\\.+\:\:\$factory is not the same as PHPDoc type Friendica\\Capabilities\\ICanCreateFromTableRow of overridden property Friendica\\BaseRepository\:\:\$factory\.$#'
+            identifier: property.phpDocType
+            count: 13
+            path: src
+
+        -
+            # #Fixme: Ignore type mismatch of BaseModule::$response in BaseApi module
+            message: '#^PHPDoc type Friendica\\Module\\Api\\ApiResponse of property Friendica\\Module\\BaseApi\:\:\$response is not the same as PHPDoc type Friendica\\Capabilities\\ICanCreateResponses of overridden property Friendica\\BaseModule\:\:\$response\.$#'
+            identifier: property.phpDocType
+            count: 1
+            path: src/Module/BaseApi.php