Skip to content

Commit

Permalink
[CLEANUP] Add missing parameter signatures (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitzberger authored Oct 24, 2023
1 parent 0099d5b commit 405acd9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Classes/Domain/Repository/CategoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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));

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 405acd9

Please sign in to comment.