Skip to content

Commit dd34d7a

Browse files
committed
BUGFIX: Adjust method signature of execute
1 parent 37c1d9d commit dd34d7a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Classes/Eel/ElasticSearchQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function __construct(ElasticSearchQueryBuilder $elasticSearchQueryBuilder
5252
*
5353
* @param bool $cacheResult If the result cache should be used
5454
* @return ElasticSearchQueryResult The query result
55+
* @throws Exception
56+
* @throws Exception\ConfigurationException
5557
* @throws JsonException
5658
* @api
5759
*/

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ protected function evaluateResult(array $result): SearchResult
627627
* @throws \JsonException
628628
* @api
629629
*/
630-
public function execute(bool $cacheResult = true): QueryResultInterface
630+
public function execute(bool $cacheResult = true): \Traversable
631631
{
632632
$elasticSearchQuery = new ElasticSearchQuery($this);
633633
return $elasticSearchQuery->execute($cacheResult);

0 commit comments

Comments
 (0)