From 6e6250d49feb32a002b91d02322bdcd6dc9ec1e9 Mon Sep 17 00:00:00 2001 From: ADmad Date: Mon, 27 Oct 2014 19:41:03 +0530 Subject: [PATCH] Fix eg. code in docblock. --- src/Validation/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validation/Validator.php b/src/Validation/Validator.php index a044db5729d..a3112b5b40d 100644 --- a/src/Validation/Validator.php +++ b/src/Validation/Validator.php @@ -362,7 +362,7 @@ public function allowEmpty($field, $when = true) { * $message = 'This field cannot be empty'; * $validator->notEmpty('email'); // Email cannot be empty * $validator->notEmpty('email', $message, 'create'); // Email can be empty on update - * $validator->notEmpty('email', $message, update); // Email can be empty on create + * $validator->notEmpty('email', $message, 'update'); // Email can be empty on create * }}} * * It is possible to conditionally disallow emptiness on a field by passing a callback