Skip to content

Commit c6afc73

Browse files
committed
add changelog
1 parent 9947a7a commit c6afc73

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.8.0.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ Libraries
145145
Helpers and Functions
146146
=====================
147147

148+
- :doc:`Array Helper </helpers/array_helper>` gained five new dot-path functions:
149+
:php:func:`dot_array_has()`, :php:func:`dot_array_set()`, :php:func:`dot_array_unset()`,
150+
:php:func:`dot_array_only()`, and :php:func:`dot_array_except()`.
151+
148152
HTTP
149153
====
150154

user_guide_src/source/helpers/array_helper.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ The following functions are available:
6363
:returns: ``true`` if the key exists, otherwise ``false``
6464
:rtype: bool
6565

66+
.. versionadded:: 4.8.0
67+
6668
Checks if an array key exists using dot syntax.
6769
This method supports wildcard ``*`` in the same way as ``dot_array_search()``.
6870

@@ -76,6 +78,8 @@ The following functions are available:
7678
:param mixed $value: The value to set
7779
:rtype: void
7880

81+
.. versionadded:: 4.8.0
82+
7983
Sets an array value using dot syntax. Missing path segments are created automatically.
8084
Wildcard ``*`` is supported with the same rule as ``dot_array_has()``:
8185
you must specify a key right after ``*``.
@@ -90,6 +94,8 @@ The following functions are available:
9094
:returns: ``true`` if a key was removed, otherwise ``false``
9195
:rtype: bool
9296

97+
.. versionadded:: 4.8.0
98+
9399
Removes array values using dot syntax.
94100
Wildcard ``*`` is supported.
95101
You can target specific keys like ``users.*.id`` or clear all keys under a path with ``user.*``.
@@ -104,6 +110,8 @@ The following functions are available:
104110
:returns: Nested array containing only the requested keys
105111
:rtype: array
106112

113+
.. versionadded:: 4.8.0
114+
107115
Gets only the specified keys using dot syntax while preserving nested structure.
108116

109117
Wildcard ``*`` is supported. Unlike ``dot_array_set()`` and ``dot_array_unset()``,
@@ -119,6 +127,8 @@ The following functions are available:
119127
:returns: Nested array with the specified keys removed
120128
:rtype: array
121129

130+
.. versionadded:: 4.8.0
131+
122132
Gets all keys except the specified ones using dot syntax.
123133

124134
Wildcard ``*`` is supported. Unlike ``dot_array_set()`` and ``dot_array_unset()``,

0 commit comments

Comments
 (0)