mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 14:52:17 +02:00
Replace removed rule from documentation
The "Age" was removed but the documentation was not completely updated.
This commit is contained in:
parent
3093d79155
commit
fbf82dc975
|
@ -42,7 +42,7 @@ Is possible to validate its attributes in a single chain:
|
|||
|
||||
```php
|
||||
$userValidator = v::attribute('name', v::stringType()->length(1, 32))
|
||||
->attribute('birthdate', v::date()->age(18));
|
||||
->attribute('birthdate', v::date()->minAge(18));
|
||||
|
||||
$userValidator->validate($user); // true
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue