Skip to content

Commit

Permalink
Merge pull request #18 from zitivapo/master
Browse files Browse the repository at this point in the history
Fix threshold setter
  • Loading branch information
dzoudzou authored Apr 7, 2017
2 parents 2f72d6e + 8d61eb9 commit bea2fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Druid/Query/Aggregation/TopN.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getDimension()
*/
public function setThreshold(ThresholdInterface $threshold)
{
$this->threshold = $threshold;
$this->threshold = (int)(string)$threshold;
return $this;
}

Expand All @@ -104,7 +104,7 @@ public function setMetric(MetricInterface $metric)
*/
public function getThreshold()
{
return (int)(string)$this->threshold;
return (int)$this->threshold;
}

/**
Expand Down

0 comments on commit bea2fe4

Please sign in to comment.