File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -401,12 +401,12 @@ public function allowEmpty($field, $when = true) {
401
401
* }}}
402
402
*
403
403
* It is possible to conditionally disallow emptiness on a field by passing a callback
404
- * as a second argument. The callback will receive the validation context array as
404
+ * as the third argument. The callback will receive the validation context array as
405
405
* argument:
406
406
*
407
407
* {{{
408
- * $validator->notEmpty('email', function ($context) {
409
- * return $context['newRecord'] && $context['data']['role'] !== 'admin';
408
+ * $validator->notEmpty('email', 'Email is required', function ($context) {
409
+ * return $context['newRecord'] && $context['data']['role'] !== 'admin';
410
410
* });
411
411
* }}}
412
412
*
You can’t perform that action at this time.
0 commit comments