Skip to content

Commit 445f9fa

Browse files
committed
changelog: modify the changelog and upgrade-guide.
1 parent 0779cc4 commit 445f9fa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/changelogs/v4.2.7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BREAKING
1414

1515
- The default values of the parameters in :php:func:`set_cookie()` and :php:meth:`CodeIgniter\\HTTP\\Response::setCookie()` has been fixed. Now the default values of ``$secure`` and ``$httponly`` are ``null``, and these values will be replaced with the ``Config\Cookie`` values.
1616
- ``Time::__toString()`` is now locale-independent. It returns database-compatible strings like '2022-09-07 12:00:00' in any locale.
17-
- The Rule of :php:func:`Validation\\Rule::required_without()` parameters are changed and this rule logic is fixed.
17+
- The Validation rule ``Validation\Rule::required_without()`` and ``Validation\StrictRules\Rule::required_without()`` parameters have been changed and the logic of these rule has also been fixed.
1818

1919
Enhancements
2020
************

user_guide_src/source/installation/upgrade_427.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Others
5353
======
5454

5555
- ``Time::__toString()`` is now locale-independent. It returns database-compatible strings like '2022-09-07 12:00:00' in any locale. Most locales are not affected by this change. But in a few locales like `ar`, `fa`, ``Time::__toString()`` (or ``(string) $time`` or implicit casting to a string) no longer returns a localized datetime string. if you want to get a localized datetime string, use :ref:`Time::toDateTimeString() <time-todatetimestring>` instead.
56-
- The rule of ``required_without`` logic is changed to validate each array separately, and the name of parameters are also changed.
56+
- The logic of Validation rule ``required_without`` has been changed to validate each array item separately when validating fields with asterisk (``*``), and the method signature of the rule method has also been changed. Extending classes should likewise update the parameters so as not to break LSP.
5757

5858
Project Files
5959
*************

0 commit comments

Comments
 (0)