mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 00:32:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
478 B
478 B
Nullable
Nullable(Validatable $rule)
Validates the given input with a defined rule when input is not NULL.
v::nullable(v::email())->validate(null); // true
v::nullable(v::email())->validate('example@example.com'); // true
v::nullable(v::email())->validate('not an email'); // false
Categorization
- Nesting
Changelog
Version | Description |
---|---|
2.0.0 | Created |
See also: