From 7f21991fa56a38a8cce2509e4694ba3cb36e87cb Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 6 May 2024 12:35:12 +0200 Subject: [PATCH] [TASK] Improve the type annotations for `TeaRepository` (#1266) This fixes the last remaining PHPStan level 6 warning. --- Classes/Domain/Repository/TeaRepository.php | 2 ++ phpstan-baseline.neon | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Classes/Domain/Repository/TeaRepository.php b/Classes/Domain/Repository/TeaRepository.php index f3dca4c..70b2f67 100644 --- a/Classes/Domain/Repository/TeaRepository.php +++ b/Classes/Domain/Repository/TeaRepository.php @@ -18,6 +18,8 @@ class TeaRepository extends Repository /** * @param positive-int $ownerUid + * + * @return QueryResultInterface */ public function findByOwnerUid(int $ownerUid): QueryResultInterface { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 699d4fe..aab4991 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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: []