From 3f4e79d495d178bf6284add5424c1da03fe7f8b5 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Tue, 18 Nov 2014 22:59:58 -0500 Subject: [PATCH] Fix incorrect doc blocks. Refs #5190 --- src/Validation/Validator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Validation/Validator.php b/src/Validation/Validator.php index 0d8d15e328c..d312ad51ecc 100644 --- a/src/Validation/Validator.php +++ b/src/Validation/Validator.php @@ -401,12 +401,12 @@ public function allowEmpty($field, $when = true) { * }}} * * It is possible to conditionally disallow emptiness on a field by passing a callback - * as a second argument. The callback will receive the validation context array as + * as the third argument. The callback will receive the validation context array as * argument: * * {{{ - * $validator->notEmpty('email', function ($context) { - * return $context['newRecord'] && $context['data']['role'] !== 'admin'; + * $validator->notEmpty('email', 'Email is required', function ($context) { + * return $context['newRecord'] && $context['data']['role'] !== 'admin'; * }); * }}} *