Skip to content

Commit a555953

Browse files
committed
docs: add note to not recommended Traditional Rules
1 parent 36e555c commit a555953

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, we recommend that
226+
you switch 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)