Skip to content

Commit

Permalink
change deprecated inline to the source
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz committed Feb 19, 2020
1 parent 3e439c0 commit 97136d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Query/Compound/FunctionScoreQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ public function addRandomFunction($seed = null, BuilderInterface $query = null)
/**
* Adds script score function.
*
* @param string $inline
* @param string $source
* @param array $params
* @param array $options
* @param BuilderInterface $query
*
* @return $this
*/
public function addScriptScoreFunction(
$inline,
$source,
array $params = [],
array $options = [],
BuilderInterface $query = null
Expand All @@ -201,7 +201,7 @@ public function addScriptScoreFunction(
array_merge(
[
'lang' => 'painless',
'inline' => $inline,
'source' => $source,
'params' => $params
],
$options
Expand Down

0 comments on commit 97136d3

Please sign in to comment.