Skip to content

Commit 12dce39

Browse files
committed
docs: change parameter descriptions to numbered list
1 parent fa817f5 commit 12dce39

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,13 @@ Your new custom rule could now be used just like any other rule:
690690
Allowing Parameters
691691
-------------------
692692

693-
If your method needs to work with parameters, the function will need a minimum of three parameters: the value to validate,
694-
the parameter string, and an array with all of the data that was submitted the form. The ``$data`` array is especially handy
693+
If your method needs to work with parameters, the function will need a minimum of three parameters:
694+
695+
1. the value to validate (``$value``)
696+
2. the parameter string (``$params``)
697+
3. an array with all of the data that was submitted the form (``$data``)
698+
699+
The ``$data`` array is especially handy
695700
for rules like ``required_with`` that needs to check the value of another submitted field to base its result on:
696701

697702
.. literalinclude:: validation/037.php

0 commit comments

Comments
 (0)