Skip to content

Commit

Permalink
[TASK] Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
KrohnMi committed Nov 17, 2023
1 parent 53ee78e commit 9fa32d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Classes/Domain/Repository/CategoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function findOneByImportSourceAndImportId($importSource, $importId, $asAr
*
* @param int $pid pid
*
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface<Category>
*/
public function findParentCategoriesByPid($pid)
{
Expand Down Expand Up @@ -138,7 +138,7 @@ public function findTree(array $rootIdList, ?string $startingPoint = null)
* @param array $ordering ordering
* @param string|null $startingPoint
*
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface<Category>
*/
public function findByIdList(array $idList, array $ordering = [], ?string $startingPoint = null)
{
Expand Down Expand Up @@ -171,7 +171,7 @@ public function findByIdList(array $idList, array $ordering = [], ?string $start
*
* @param int $parent parent
*
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface<Category>
*/
public function findChildren($parent)
{
Expand Down
3 changes: 2 additions & 1 deletion Classes/Domain/Repository/TagRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace GeorgRinger\News\Domain\Repository;

use GeorgRinger\News\Domain\Model\DemandInterface;
use GeorgRinger\News\Domain\Model\Tag;
use GeorgRinger\News\Utility\Validation;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
Expand All @@ -26,7 +27,7 @@ class TagRepository extends AbstractDemandedRepository
* @param array $ordering ordering
* @param string $startingPoint starting point uid or comma separated list
*
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface
* @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface<Tag>
*/
public function findByIdList(array $idList, array $ordering = [], $startingPoint = null)
{
Expand Down

0 comments on commit 9fa32d9

Please sign in to comment.