Ignore type mismatches of BaseModule and BaseRepository properties in child classes

This commit is contained in:
Art4 2025-06-13 12:29:36 +00:00
commit 6633d1b491

View 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