[BIGUPDATE: api.core.Checker] remove flexibility

This commit is contained in:
xdrm-brackets 2018-03-05 19:33:43 +01:00
parent a9fec0373e
commit 8abf8cca2e
1 changed files with 3 additions and 2 deletions

View File

@ -124,7 +124,8 @@
// Boolean
case 'boolean':
return $checker && ( is_bool($value) || $value === 'false' || $value === 'true' );
case 'bool':
return $checker && is_bool($value);
break;
// Objet non vide
@ -138,7 +139,7 @@
break;
case 'numeric':
return $checker && (is_numeric($value) || $value == null || $value == 'null');
return $checker && (is_numeric($value) || $value == null);
break;
case "float":