Skip to content

Commit bc432c7

Browse files
committed
docs: update description
The value to be validated is not necessarily a string.
1 parent 77a67d0 commit bc432c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ shown above. The primary benefit here is that it provides some extra navigation
603603
Creating a Rule Class
604604
---------------------
605605

606-
Within the file itself, each method is a rule and must accept a string as the first parameter, and must return
606+
Within the file itself, each method is a rule and must accept a value to validate as the first parameter, and must return
607607
a boolean true or false value signifying true if it passed the test or false if it did not:
608608

609609
.. literalinclude:: validation/034.php
@@ -624,7 +624,7 @@ Your new custom rule could now be used just like any other rule:
624624
Allowing Parameters
625625
-------------------
626626

627-
If your method needs to work with parameters, the function will need a minimum of three parameters: the string to validate,
627+
If your method needs to work with parameters, the function will need a minimum of three parameters: the value to validate,
628628
the parameter string, and an array with all of the data that was submitted the form. The ``$data`` array is especially handy
629629
for rules like ``required_with`` that needs to check the value of another submitted field to base its result on:
630630

0 commit comments

Comments
 (0)