mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 00:16:13 +01:00
[TASK] Improve the type annotations for TeaRepository
(#1266)
This fixes the last remaining PHPStan level 6 warning.
This commit is contained in:
parent
f2c6c24e5e
commit
7f21991fa5
2 changed files with 3 additions and 5 deletions
|
@ -18,6 +18,8 @@ class TeaRepository extends Repository
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param positive-int $ownerUid
|
* @param positive-int $ownerUid
|
||||||
|
*
|
||||||
|
* @return QueryResultInterface<Tea>
|
||||||
*/
|
*/
|
||||||
public function findByOwnerUid(int $ownerUid): QueryResultInterface
|
public function findByOwnerUid(int $ownerUid): QueryResultInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
parameters:
|
parameters:
|
||||||
ignoreErrors:
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue