Skip to content

Commit 09612db

Browse files
committed
docs: fix descrition aboug PHP native functions
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.
1 parent 02a747f commit 09612db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,6 @@ is_image Yes Fails if the file cannot be determined to be
928928

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

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

0 commit comments

Comments
 (0)