We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent befb9a9 commit b17710eCopy full SHA for b17710e
1 file changed
user_guide_src/source/libraries/validation.rst
@@ -642,6 +642,7 @@ You need to use an array for validation rules:
642
643
.. literalinclude:: validation/040.php
644
645
+You must set the error message for the closure rule.
646
When you specify the error message, set the array key for the closure rule.
647
In the above code, the ``required`` rule has the key ``0``, and the closure has ``1``.
648
0 commit comments