* Validator returns float number for the numeric rule

This commit is contained in:
Visman 2018-11-01 16:08:31 +07:00
parent cb1ef0f640
commit 3e1fd25349

View file

@ -551,7 +551,7 @@ class Validator
if (null === $value) {
return null;
} elseif (\is_numeric($value)) {
return 0 + $value;
return 0.0 + $value;
} else {
$this->addError('The :alias must be numeric');
return null;