* Validator returns float number for the numeric rule
This commit is contained in:
parent
cb1ef0f640
commit
3e1fd25349
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue