Skip to content

Commit

Permalink
Changed return type of SortClauseProcessorInterface::processSortClauses
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Aug 30, 2024
1 parent db281fa commit 824a13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Contracts\Rest\Input\ParsingDispatcher;
use Traversable;

/**
* @template TSortClause
Expand All @@ -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 [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*/
namespace Ibexa\Contracts\Rest\Input\Parser\Query\SortClause;

use Traversable;

/**
* @template TSortClause
*
Expand All @@ -18,7 +16,7 @@ interface SortClauseProcessorInterface
/**
* @param array<string, string> $sortClauseData
*
* @return \Traversable<TSortClause>
* @return iterable<TSortClause>
*/
public function processSortClauses(array $sortClauseData): Traversable;
public function processSortClauses(array $sortClauseData): iterable;
}

0 comments on commit 824a13f

Please sign in to comment.