Skip to content

Commit

Permalink
Fix Php 5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuildy committed Apr 23, 2015
1 parent 14a6f39 commit 86b19f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Elastica/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 86b19f4

Please sign in to comment.