Commit 9db19914 by Alexander Makarov

Used (float) instead of floatval()

parent e606617a
......@@ -170,8 +170,8 @@ class CompareValidator extends Validator
protected function compareValues($operator, $type, $value, $compareValue)
{
if ($type === 'number') {
$value = floatval($value);
$compareValue = floatval($compareValue);
$value = (float) $value;
$compareValue = (float) $compareValue;
} else {
$value = (string) $value;
$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