From 824a13fa21fb18fe0bbdf7390529fe12abee0fa4 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Wed, 7 Aug 2024 09:00:20 +0200 Subject: [PATCH] Changed return type of SortClauseProcessorInterface::processSortClauses --- .../Parser/Query/SortClause/BaseSortClauseProcessor.php | 3 +-- .../Query/SortClause/SortClauseProcessorInterface.php | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php b/src/contracts/Input/Parser/Query/SortClause/BaseSortClauseProcessor.php index e3e086a51..68a13d791 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 1ba7cc874..628e125d4 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; }