Skip to content

Commit

Permalink
docs: add changelog and upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 10, 2023
1 parent c72fa24 commit 9192068
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions user_guide_src/source/changelogs/v4.3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ BREAKING
- **FeatureTestTrait:** When using :ref:`withBodyFormat() <feature-formatting-the-request>`,
the priority of the request body has been changed.
See :ref:`Upgrading Guide <upgrade-437-feature-testing>` for details.
- **Validation:** The return value of ``Validation::loadRuleGroup()`` has been
changed from "**rules array**" to "**array** of **rules array** and **customErrors array**"
(``[rules, customErrors]``).

Message Changes
***************
Expand Down
13 changes: 13 additions & 0 deletions user_guide_src/source/installation/upgrade_437.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ is not used::

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

Return value of Validation::loadRuleGroup()
===========================================

The return value of ``Validation::loadRuleGroup()`` has been changed from
"**rules array**" to "**array** of **rules array** and **customErrors array**"
(``[rules, customErrors]``).

If you use the method, update the code like the following::

$rules = $this->validation->loadRuleGroup($rules);
[$rules, $customErrors] = $this->validation->loadRuleGroup($rules);

Breaking Enhancements
*********************

Expand Down

0 comments on commit 9192068

Please sign in to comment.