From 86b19f4438ebff58142da10011ba47cdedc1906f Mon Sep 17 00:00:00 2001 From: eBuildy Date: Thu, 23 Apr 2015 17:30:44 +0200 Subject: [PATCH] Fix Php 5.3 support --- lib/Elastica/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Elastica/Query.php b/lib/Elastica/Query.php index 47134288ef..594c8cd645 100644 --- a/lib/Elastica/Query.php +++ b/lib/Elastica/Query.php @@ -407,7 +407,7 @@ public function setSuggest(Suggest $suggest) public function setRescore($rescore) { if (is_array($rescore)) { - $buffer = []; + $buffer = array(); foreach($rescore as $rescoreQuery) { $buffer []= $rescoreQuery->toArray();