Browse Source

* Validator returns float number for the numeric rule

Visman 6 years ago
parent
commit
3e1fd25349
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Core/Validator.php

+ 1 - 1
app/Core/Validator.php

@@ -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;