mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-09 17:16:14 +01:00

[TASK] Improve the type annotations for TeaRepository (#1266)

This fixes the last remaining PHPStan level 6 warning.
This commit is contained in:
Oliver Klee 2024-05-06 12:35:12 +02:00 committed by GitHub
parent f2c6c24e5e
commit 7f21991fa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -18,6 +18,8 @@ class TeaRepository extends Repository
/**
* @param positive-int $ownerUid
*
* @return QueryResultInterface<Tea>
*/
public function findByOwnerUid(int $ownerUid): QueryResultInterface
{

View file

@ -1,6 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Method TTN\\\\Tea\\\\Domain\\\\Repository\\\\TeaRepository\\:\\:findByOwnerUid\\(\\) return type with generic interface TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\QueryResultInterface does not specify its types\\: ModelType$#"
count: 1
path: Classes/Domain/Repository/TeaRepository.php
ignoreErrors: []