diff --git a/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php b/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php index e3e086a5..68a13d79 100644 --- a/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php +++ b/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php @@ -8,7 +8,6 @@ use Ibexa\Contracts\Rest\Exceptions; use Ibexa\Contracts\Rest\Input\ParsingDispatcher; -use Traversable; /** * @template TSortClause @@ -24,7 +23,7 @@ public function __construct(ParsingDispatcher $parsingDispatcher) $this->parsingDispatcher = $parsingDispatcher; } - public function processSortClauses(array $sortClauseData): Traversable + public function processSortClauses(array $sortClauseData): iterable { if (empty($sortClauseData)) { yield from []; diff --git a/src/contracts/Input/Parser/Query/SortClause/SortClauseProcessorInterface.php b/src/contracts/Input/Parser/Query/SortClause/SortClauseProcessorInterface.php index 1ba7cc87..628e125d 100644 --- a/src/contracts/Input/Parser/Query/SortClause/SortClauseProcessorInterface.php +++ b/src/contracts/Input/Parser/Query/SortClause/SortClauseProcessorInterface.php @@ -6,8 +6,6 @@ */ namespace Ibexa\Contracts\Rest\Input\Parser\Query\SortClause; -use Traversable; - /** * @template TSortClause * @@ -18,7 +16,7 @@ interface SortClauseProcessorInterface /** * @param array $sortClauseData * - * @return \Traversable + * @return iterable */ - public function processSortClauses(array $sortClauseData): Traversable; + public function processSortClauses(array $sortClauseData): iterable; }