Skip to content
Snippets Groups Projects
Commit 9582224e authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

Merge pull request #6 from GrandLTU/seed-function-fix

Use empty stdClass instead of empty array.
parents e256796f f5ba75c4
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class FunctionScoreQuery implements BuilderInterface ...@@ -162,7 +162,7 @@ class FunctionScoreQuery implements BuilderInterface
public function addRandomFunction($seed = null, BuilderInterface $filter = null) public function addRandomFunction($seed = null, BuilderInterface $filter = null)
{ {
$function = [ $function = [
'random_score' => $seed ? [ 'seed' => $seed ] : [], 'random_score' => $seed ? [ 'seed' => $seed ] : new \stdClass(),
]; ];
$this->applyFilter($function, $filter); $this->applyFilter($function, $filter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment