From 405acd9ac341dedc85a26f5e1d6a5b6da3e89f38 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Tue, 24 Oct 2023 10:20:49 +0200 Subject: [PATCH] [CLEANUP] Add missing parameter signatures (#2237) --- Classes/Domain/Repository/CategoryRepository.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Classes/Domain/Repository/CategoryRepository.php b/Classes/Domain/Repository/CategoryRepository.php index 9a09974bc4..e33bab9e14 100644 --- a/Classes/Domain/Repository/CategoryRepository.php +++ b/Classes/Domain/Repository/CategoryRepository.php @@ -40,6 +40,7 @@ protected function createOrderingsFromDemand(DemandInterface $demand): array * @param string $importSource import source * @param int $importId import id * @param bool $asArray return result as array + * * @return Category|array */ public function findOneByImportSourceAndImportId($importSource, $importId, $asArray = false) @@ -85,10 +86,12 @@ public function findParentCategoriesByPid($pid) /** * Find category tree * - * @param array $rootIdList list of id s + * @param array $rootIdList list of ids + * @param string|null $startingPoint + * * @return QueryInterface|array */ - public function findTree(array $rootIdList, $startingPoint = null) + public function findTree(array $rootIdList, ?string $startingPoint = null) { $subCategories = CategoryService::getChildrenCategories(implode(',', $rootIdList)); @@ -131,12 +134,13 @@ public function findTree(array $rootIdList, $startingPoint = null) /** * Find categories by a given pid * - * @param array $idList list of id s + * @param array $idList list of ids * @param array $ordering ordering + * @param string|null $startingPoint * * @return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface */ - public function findByIdList(array $idList, array $ordering = [], $startingPoint = null) + public function findByIdList(array $idList, array $ordering = [], ?string $startingPoint = null) { if (empty($idList)) { throw new \InvalidArgumentException('The given id list is empty.', 1484823597);