Skip to content

Commit

Permalink
Merge pull request #8185 from kenjis/docs-add-note-to-traditional-rules
Browse files Browse the repository at this point in the history
docs: add note to not recommended Traditional Validation Rules
  • Loading branch information
kenjis authored Nov 13, 2023
2 parents f023594 + d07c73c commit cbb9deb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ and the new classes (**Strict Rules**) have ``CodeIgniter\Validation\StrictRules
Traditional Rules
-----------------

.. important:: Traditional Rules exist only for backward compatibility. Do not
use them in new projects. Even if you are already using them, we recommend
switching to Strict Rules.

.. warning:: When validating data that contains non-string values, such as JSON data, it is recommended to use **Strict Rules**.

The **Traditional Rules** implicitly assume that string values are validated,
Expand Down

0 comments on commit cbb9deb

Please sign in to comment.