Skip to content

Commit 530d5e1

Browse files
committed
docs: add changelog
1 parent 31f1fa0 commit 530d5e1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ Return Type Changes
7979
- **Model:** The return type of the ``objectToRawArray()`` method in the ``Model``
8080
and ``BaseModel`` classes has been changed from ``?array`` to ``array``.
8181

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+
8295
Others
8396
------
8497

0 commit comments

Comments
 (0)