From 6633d1b49106658be00d738c7926f00ce3edc2f8 Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 13 Jun 2025 12:29:36 +0000 Subject: [PATCH] Ignore type mismatches of BaseModule and BaseRepository properties in child classes --- .phpstan.neon | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.phpstan.neon b/.phpstan.neon index 15d3ec15fb..201d6acb39 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -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 -- 2.39.5