Skip to content

Commit

Permalink
Force numeric floats to cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed May 26, 2015
1 parent 50e6848 commit 7e3eefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expression/NumericExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function getValue()
{
if(stristr($this->_value, '.'))
{
return filter_var(
return (float)filter_var(
$this->_value,
FILTER_SANITIZE_NUMBER_FLOAT,
FILTER_FLAG_ALLOW_FRACTION
Expand Down

0 comments on commit 7e3eefb

Please sign in to comment.