Skip to content

Commit a33724c

Browse files
committed
docs: add changelog and upgrade
1 parent bb9f4e5 commit a33724c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Interface Changes
8080
the ``ResponseInterface::setCookie()`` has been fixed from ``''`` to ``0``.
8181
- **Logger:** The `psr/log <https://packagist.org/packages/psr/log>`_ package has
8282
been upgraded to v3.0.0.
83+
- **Validation:** The method signature of ``ValidationInterface::run()`` has been
84+
changed. The ``?string`` typehint on the ``$dbGroup`` parameter was removed.
8385

8486
.. _v450-method-signature-changes:
8587

@@ -129,6 +131,8 @@ Others
129131
that implements the PSR-3 interface have been fixed. The ``bool`` return
130132
types are changed to ``void``. The ``$message`` parameters now have
131133
``string|Stringable`` types.
134+
- **Validation:** The method signature of ``Validation::run()`` has been
135+
changed. The ``?string`` typehint on the ``$dbGroup`` parameter was removed.
132136

133137
.. _v450-removed-deprecated-items:
134138

@@ -294,8 +298,12 @@ findAll(0) Behavior
294298
Libraries
295299
=========
296300

297-
- **Validation:** Added the new rule ``field_exists`` that checks the filed
298-
exists in the data to be validated.
301+
- **Validation:**
302+
- Added the new rule ``field_exists`` that checks the filed exists in the
303+
data to be validated.
304+
- The ``$dbGroup`` parameter of ``Validation::run()`` now accepts not only
305+
a database group name, but also a database connection instance or an array
306+
of database settings.
299307

300308
Helpers and Functions
301309
=====================

user_guide_src/source/installation/upgrade_450.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ using them, upgrade your code. See :ref:`ChangeLog <v450-removed-deprecated-item
199199
Breaking Enhancements
200200
*********************
201201

202+
- The method signatures of ``Validation::run()`` and ``ValidationInterface::run()``
203+
have been changed. The ``?string`` typehint on the ``$dbGroup`` parameter was
204+
removed. Extending classes should likewise remove the parameter so as not to
205+
break LSP.
206+
202207
Project Files
203208
*************
204209

0 commit comments

Comments
 (0)