update README to include $fields callback param in code example

This commit is contained in:
Chris Van Patten 2016-01-05 09:57:16 -05:00
parent 3ee508987e
commit 920fefc05a

View File

@ -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.');
``` ```