mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +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.
|
||||
|
||||
```php
|
||||
Valitron\Validator::addRule('alwaysFail', function($field, $value, array $params) {
|
||||
Valitron\Validator::addRule('alwaysFail', function($field, $value, array $params, array $fields) {
|
||||
return false;
|
||||
}, 'Everything you do is wrong. You fail.');
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user