Skip to content

Commit 4334083

Browse files
committed
add changelog
1 parent d8be2f7 commit 4334083

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.7.1.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Bugs Fixed
5858
- **Toolbar:** Fixed a bug where the standalone toolbar page loaded from ``?debugbar_time=...`` was not interactive.
5959
- **Toolbar:** Fixed a bug in the Routes panel where only the first route parameter was converted to an input field on hover.
6060
- **Testing:** Fixed a bug in ``FeatureTestTrait::withRoutes()`` where invalid HTTP methods were not properly validated, thus passing them all to ``RouteCollection``.
61+
- **Validation:** Fixed a bug where the ``required``, ``required_with``, and ``required_without`` rules did not fire for array elements missing a key when using wildcard fields (e.g., ``contacts.friends.*.name``).
6162
- **View:** Fixed a bug where ``View`` would throw an error if the ``appOverridesFolder`` config property was not defined.
6263

6364
See the repo's

user_guide_src/source/libraries/validation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ valid_url_strict Yes Fails if field does not contain a valid URL.
10431043
``FILTER_VALIDATE_URL``.
10441044
======================= ========== ============================================= ===================================================
10451045

1046+
.. note:: When validating nested array data with the wildcard ``*`` syntax, use ``required``,
1047+
``required_with``, or ``required_without`` to ensure that every array element is checked
1048+
for the presence of a key. Without one of these rules, elements whose key is absent are
1049+
silently skipped.
1050+
10461051
.. note:: You can also use any native PHP functions that return boolean and
10471052
permit at least one parameter, the field data to validate.
10481053

0 commit comments

Comments
 (0)