Commit 9db19914 by Alexander Makarov

Used (float) instead of floatval()

parent e606617a
...@@ -170,8 +170,8 @@ class CompareValidator extends Validator ...@@ -170,8 +170,8 @@ class CompareValidator extends Validator
protected function compareValues($operator, $type, $value, $compareValue) protected function compareValues($operator, $type, $value, $compareValue)
{ {
if ($type === 'number') { if ($type === 'number') {
$value = floatval($value); $value = (float) $value;
$compareValue = floatval($compareValue); $compareValue = (float) $compareValue;
} else { } else {
$value = (string) $value; $value = (string) $value;
$compareValue = (string) $compareValue; $compareValue = (string) $compareValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment