Skip to content

Commit b17710e

Browse files
committed
docs: state that error messages must be set
1 parent befb9a9 commit b17710e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ You need to use an array for validation rules:
642642

643643
.. literalinclude:: validation/040.php
644644

645+
You must set the error message for the closure rule.
645646
When you specify the error message, set the array key for the closure rule.
646647
In the above code, the ``required`` rule has the key ``0``, and the closure has ``1``.
647648

0 commit comments

Comments
 (0)