From f25405e369d7bd6f798986de9e32505f6b136ef5 Mon Sep 17 00:00:00 2001 From: Vytautas Galdikas Date: Thu, 15 Jun 2023 14:44:07 +0300 Subject: [PATCH] Convert `ElasticSearchEngine->performSearch` result to array when there is callback passed (so it's the same when no callback is passed) --- src/Engines/ElasticSearchEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engines/ElasticSearchEngine.php b/src/Engines/ElasticSearchEngine.php index 9694253..1161ece 100644 --- a/src/Engines/ElasticSearchEngine.php +++ b/src/Engines/ElasticSearchEngine.php @@ -197,7 +197,7 @@ private function performSearch(BaseBuilder $builder, $options = []) $callback, $this->elasticsearch, $searchBody - ); + )->asArray(); } $model = $builder->model;