Skip to content

Commit 9192068

Browse files
committed
docs: add changelog and upgrade guide
1 parent c72fa24 commit 9192068

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

user_guide_src/source/changelogs/v4.3.7.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ BREAKING
1515
- **FeatureTestTrait:** When using :ref:`withBodyFormat() <feature-formatting-the-request>`,
1616
the priority of the request body has been changed.
1717
See :ref:`Upgrading Guide <upgrade-437-feature-testing>` for details.
18+
- **Validation:** The return value of ``Validation::loadRuleGroup()`` has been
19+
changed from "**rules array**" to "**array** of **rules array** and **customErrors array**"
20+
(``[rules, customErrors]``).
1821

1922
Message Changes
2023
***************

user_guide_src/source/installation/upgrade_437.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ is not used::
3939

4040
Previously, the ``$body`` was used for the request body.
4141

42+
Return value of Validation::loadRuleGroup()
43+
===========================================
44+
45+
The return value of ``Validation::loadRuleGroup()`` has been changed from
46+
"**rules array**" to "**array** of **rules array** and **customErrors array**"
47+
(``[rules, customErrors]``).
48+
49+
If you use the method, update the code like the following::
50+
51+
$rules = $this->validation->loadRuleGroup($rules);
52+
53+
[$rules, $customErrors] = $this->validation->loadRuleGroup($rules);
54+
4255
Breaking Enhancements
4356
*********************
4457

0 commit comments

Comments
 (0)