From e7a1c41f61e6f8a7a316f6799050cdae7205737c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt> Date: Mon, 23 Mar 2015 13:19:33 +0200 Subject: [PATCH] Added an empty query array in DisMaxQuery --- Query/DisMaxQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Query/DisMaxQuery.php b/Query/DisMaxQuery.php index f457f7d..db8b316 100644 --- a/Query/DisMaxQuery.php +++ b/Query/DisMaxQuery.php @@ -59,6 +59,7 @@ class DisMaxQuery implements BuilderInterface */ public function toArray() { + $query = []; foreach ($this->queries as $type) { $query['queries'][] = [$type->getType() => $type->toArray()]; } -- GitLab