Skip to content

Commit 5fdc9b6

Browse files
committed
reset underscore prefix to functions variable
1 parent 91737ae commit 5fdc9b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Elastica/Query/FunctionScore.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FunctionScore extends AbstractQuery
3030
const DECAY_EXPONENTIAL = 'exp';
3131
const DECAY_LINEAR = 'linear';
3232

33-
protected $functions = array();
33+
protected $_functions = array();
3434

3535
/**
3636
* Set the child query for this function_score query
@@ -69,7 +69,7 @@ public function addFunction($functionType, $functionParams, AbstractFilter $filt
6969
if ($weight !== null) {
7070
$function['weight'] = $weight;
7171
}
72-
$this->functions[] = $function;
72+
$this->_functions[] = $function;
7373
return $this;
7474
}
7575

@@ -215,8 +215,8 @@ public function setScoreMode($mode)
215215
*/
216216
public function toArray()
217217
{
218-
if (sizeof($this->functions)) {
219-
$this->setParam('functions', $this->functions);
218+
if (sizeof($this->_functions)) {
219+
$this->setParam('functions', $this->_functions);
220220
}
221221
return parent::toArray();
222222
}

0 commit comments

Comments
 (0)