Skip to content

Commit cbb9deb

Browse files
authored
Merge pull request #8185 from kenjis/docs-add-note-to-traditional-rules
docs: add note to not recommended Traditional Validation Rules
2 parents f023594 + d07c73c commit cbb9deb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ and the new classes (**Strict Rules**) have ``CodeIgniter\Validation\StrictRules
221221
Traditional Rules
222222
-----------------
223223

224+
.. important:: Traditional Rules exist only for backward compatibility. Do not
225+
use them in new projects. Even if you are already using them, we recommend
226+
switching to Strict Rules.
227+
224228
.. warning:: When validating data that contains non-string values, such as JSON data, it is recommended to use **Strict Rules**.
225229

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

0 commit comments

Comments
 (0)