mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
update README to include $fields callback param in code example
This commit is contained in:
parent
3ee508987e
commit
920fefc05a
@ -182,7 +182,7 @@ case of an error. The callback provided should return boolean true or
|
|||||||
false.
|
false.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
Valitron\Validator::addRule('alwaysFail', function($field, $value, array $params) {
|
Valitron\Validator::addRule('alwaysFail', function($field, $value, array $params, array $fields) {
|
||||||
return false;
|
return false;
|
||||||
}, 'Everything you do is wrong. You fail.');
|
}, 'Everything you do is wrong. You fail.');
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user