diff --git a/build/api/core/Checker.php b/build/api/core/Checker.php index 14eaf46..63f338b 100755 --- a/build/api/core/Checker.php +++ b/build/api/core/Checker.php @@ -44,6 +44,10 @@ // On recupere le sous-type si défini $flags = isset($match[3]) ? explode(',', substr($match[3], 1)) : null; + // Si numeric -> to String + if( is_numeric($value) ) + $value = (string) $value; + // On effectue la verification de taille $lenCheck = $checker && is_string($value) && strlen($value) <= $max && strlen($value) >= $min;