Skip to content

Commit

Permalink
docs: fix descrition aboug PHP native functions
Browse files Browse the repository at this point in the history
When using native functions, it needs one or three params.
$rule($value) or $rule($value, $param, $data).
It seems there is no function to fit the API.

CI3's validation alters data. CI4 does not.
  • Loading branch information
kenjis committed Oct 22, 2021
1 parent 02a747f commit 09612db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/libraries/validation.rst
Expand Up @@ -928,6 +928,6 @@ is_image Yes Fails if the file cannot be determined to be

The file validation rules apply for both single and multiple file uploads.

.. note:: You can also use any native PHP functions that permit up
to two parameters, where at least one is required (to pass
the field data).
.. note:: You can also use any native PHP functions that return boolean and
permit at least one parameter, the field data to validate.
The Validation library **never alters the data** to validate.

0 comments on commit 09612db

Please sign in to comment.