We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field 'cnn' range in 0 to 9, if field cnn=0 get error The field is required and has not been specified.
$val->addField('cnn') ->number() ->required() ->numericMax('9') ->numericMin('0');
Bug in /vendor/fuelphp/validation/src/Rule/Required.php line 53 return ($value === 0 or $value === false or ! empty($value));
return ($value === 0 or $value === false or ! empty($value));
phpDoc Note:
No warning is generated if the variable does not exist. That means empty() is essentially the concise equivalent to !isset($var) || $var == false.
The text was updated successfully, but these errors were encountered:
fix: fuel#52
338afd9
No branches or pull requests
Field 'cnn' range in 0 to 9, if field cnn=0 get error The field is required and has not been specified.
Bug in /vendor/fuelphp/validation/src/Rule/Required.php line 53
return ($value === 0 or $value === false or ! empty($value));
phpDoc Note:
The text was updated successfully, but these errors were encountered: