Skip to content

Commit

Permalink
docs: add user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed May 19, 2022
1 parent 3d987fd commit be1610b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ BREAKING
- The color code output by :ref:`CLI::color() <cli-library-color>` has been changed to fix a bug.
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.

Enhancements
************
Expand Down
3 changes: 3 additions & 0 deletions user_guide_src/source/helpers/array_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ The following functions are available:

.. literalinclude:: array_helper/005.php

.. note:: Prior to v4.2.0, ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returned ``23``
due to a bug. v4.2.0 and later returns ``null``.

.. php:function:: array_deep_search($key, array $array)
:param mixed $key: The target key
Expand Down

0 comments on commit be1610b

Please sign in to comment.