File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
user_guide_src/source/changelogs Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,19 @@ Return Type Changes
79
79
- **Model: ** The return type of the ``objectToRawArray() `` method in the ``Model ``
80
80
and ``BaseModel `` classes has been changed from ``?array `` to ``array ``.
81
81
82
+ Traditional Validation Rules
83
+ ----------------------------
84
+
85
+ To add ``declare(strict_types=1) `` to the framework codebase, the method parameter
86
+ type ``?string `` for a value to validate in the all Traditional Validation rule
87
+ classes ``CodeIgniter\Validation\FormatRules `` and ``CodeIgniter\Validation\Rules ``
88
+ are removed.
89
+
90
+ For example, the method signature changed as follows::
91
+
92
+ Before: public function integer(?string $str = null): bool
93
+ After: public function integer($str = null): bool
94
+
82
95
Others
83
96
------
84
97
You can’t perform that action at this time.
0 commit comments