Skip to content

Commit 0cb55b8

Browse files
committed
SearchService.php: Fix $languageFilter usage
1 parent 3e34297 commit 0cb55b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/contracts/Repository/SearchService.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ interface SearchService
137137
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if query is not valid
138138
*
139139
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Query $query
140-
* @param array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
140+
* @param array<int, string>|array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
141141
* Also used to define which field languages are loaded for the returned content.
142142
* Currently, supports `['languages' => [<language_code_string>,…], 'useAlwaysAvailable' => <bool>]`.
143143
* `useAlwaysAvailable` defaults to `true` to avoid exceptions on missing translations.
@@ -159,7 +159,7 @@ public function findContent(Query $query, array $languageFilter = [], bool $filt
159159
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if query is not valid
160160
*
161161
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Query $query
162-
* @param array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
162+
* @param array<int, string>|array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
163163
* Currently, supports `['languages' => [<language_code_string>,…], 'useAlwaysAvailable' => <bool>]`.
164164
* `useAlwaysAvailable` defaults to `true` to avoid exceptions on missing translations.
165165
* @param bool $filterOnUserPermissions if `true` (default), only the objects which the user is allowed to read are returned.
@@ -176,7 +176,7 @@ public function findContentInfo(Query $query, array $languageFilter = [], bool $
176176
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if there is more than than one result matching the criterions
177177
*
178178
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion $filter
179-
* @param array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
179+
* @param array<int, string>|array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
180180
* Currently, supports `['languages' => [<language_code_string>,…], 'useAlwaysAvailable' => <bool>]`.
181181
* `useAlwaysAvailable` defaults to `true` to avoid exceptions on missing translations.
182182
* @param bool $filterOnUserPermissions if `true` (default), only the objects which the user is allowed to read are returned.
@@ -201,7 +201,7 @@ public function suggest(string $prefix, array $fieldPaths = [], int $limit = 10,
201201
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if query is not valid
202202
*
203203
* @param \Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery $query
204-
* @param array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
204+
* @param array<int, string>|array<string, mixed> $languageFilter Configuration for specifying prioritized languages query will be performed on.
205205
* Also used to define which field languages are loaded for the returned content.
206206
* Currently, supports `['languages' => [<language_code_string>,…], 'useAlwaysAvailable' => <bool>]`.
207207
* `useAlwaysAvailable` defaults to `true` to avoid exceptions on missing translations.

0 commit comments

Comments
 (0)