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();