Skip to content

Commit 572e44b

Browse files
committed
Add setPostFilter method to Elastica\Query - fix for php < 5.5
1 parent 9e6d598 commit 572e44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/Elastica/Test/QueryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function testSetPostQuery()
197197
{
198198
$query = new Query();
199199

200-
$post_filter = new FilterTerm(['color' => 'green']);
200+
$post_filter = new FilterTerm(array('color' => 'green'));
201201
$query->setPostFilter($post_filter->toArray());
202202

203203
$data = $query->toArray();

0 commit comments

Comments
 (0)