mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 18:16:13 +02:00

[BUGFIX] Do not overwrite type annotations from parent classes (#480)

This avoids PHPStan warnings in a case where our type annotations are
not up to date anymore with the latest change in the Core.
This commit is contained in:
Oliver Klee 2022-07-13 18:21:01 +02:00 committed by GitHub
parent 53009a44ff
commit 29eec0cb75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View file

@ -16,8 +16,5 @@ class TeaRepository extends Repository
{
use StoragePageAgnosticTrait;
/**
* @var string[]
*/
protected $defaultOrderings = ['title' => QueryInterface::ORDER_ASCENDING];
}

View file

@ -1,6 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^PHPDoc type array\\<string\\> of property TTN\\\\Tea\\\\Domain\\\\Repository\\\\Product\\\\TeaRepository\\:\\:\\$defaultOrderings is not the same as PHPDoc type array of overridden property TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Repository\\<TTN\\\\Tea\\\\Domain\\\\Model\\\\Product\\\\Tea\\>\\:\\:\\$defaultOrderings\\.$#"
count: 1
path: Classes/Domain/Repository/Product/TeaRepository.php