File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ a boolean true or false value signifying true if it passed the test or false if
609609.. literalinclude :: validation/034.php
610610
611611By default, the system will look within ``CodeIgniter\Language\en\Validation.php `` for the language strings used
612- within errors. In custom rules, you may provide error messages by accepting a ``$error `` variable by reference in the
612+ within errors. In custom rules, you may provide error messages by accepting a ``& $error `` variable by reference in the
613613second parameter:
614614
615615.. literalinclude :: validation/035.php
@@ -630,7 +630,7 @@ for rules like ``required_with`` that needs to check the value of another submit
630630
631631.. literalinclude :: validation/037.php
632632
633- Custom errors can be returned as the fourth parameter, just as described above.
633+ Custom errors can be returned as the fourth parameter `` &$error `` , just as described above.
634634
635635.. _validation-using-closure-rule :
636636
You can’t perform that action at this time.
0 commit comments