Browse Source

Between is not a valid rule in the core

Using a rule that is valid in the core to not confuse people.
Juan Basso 11 years ago
parent
commit
eea761d675
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Validation/Validator.php

+ 1 - 1
src/Validation/Validator.php

@@ -278,7 +278,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
      *          ->add('user_id', 'valid', ['rule' => 'numeric', 'message' => 'Invalid User'])
      *
      *      $validator->add('password', [
-     *          'size' => ['rule' => ['between', 8, 20]],
+     *          'size' => ['rule' => ['lengthBetween', 8, 20]],
      *          'hasSpecialCharacter' => ['rule' => 'validateSpecialchar', 'message' => 'not valid']
      *      ]);
      * ```