Skip to content

Commit

Permalink
NGSTACK-793: improve type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Aug 2, 2023
1 parent bd7e5dc commit 533af5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getFilterCriteria(array $parameters): Criterion|array|null
$idsGrouped[] = $relationResolver->getRelationIds($field);
}

/** @var array $relatedContentIds */
/** @var int[] $relatedContentIds */
$relatedContentIds = array_merge(...$idsGrouped);

if (empty($relatedContentIds)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getFilterCriteria(array $parameters): Criterion|array|null
$idsGrouped[] = $relationResolver->getRelationIds($field);
}

/** @var array $relatedContentIds */
/** @var int[] $relatedContentIds */
$relatedContentIds = array_merge(...$idsGrouped);

if (empty($relatedContentIds)) {
Expand Down

0 comments on commit 533af5f

Please sign in to comment.