mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
Remove versionadded from docs
This commit is contained in:
@@ -285,10 +285,6 @@ deprecated one when that makes sense::
|
||||
// ...
|
||||
}, ['deprecated' => true, 'alternative' => 'new_one']);
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
The ``deprecating_package`` option was added in Twig 3.11.
|
||||
|
||||
You can also set the ``deprecating_package`` option to specify the package that
|
||||
is deprecating the filter, and ``deprecated`` can be set to the package version
|
||||
when the filter was deprecated::
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
``find``
|
||||
========
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
The ``find`` filter was added in Twig 3.11.
|
||||
|
||||
The ``find`` filter returns the first element of a sequence matching an arrow
|
||||
function. The arrow function receives the value of the sequence:
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
``shuffle``
|
||||
===========
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
The ``shuffle`` filter was added in Twig 3.11.
|
||||
|
||||
The ``shuffle`` filter shuffles a sequence, a mapping, or a string:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -23,10 +23,6 @@ You can also deprecate a macro in the following way:
|
||||
Note that by default, the deprecation notices are silenced and never displayed nor logged.
|
||||
See :ref:`deprecation-notices` to learn how to handle them.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
The ``package`` and ``version`` options were added in Twig 3.11.
|
||||
|
||||
You can optionally add the package and the version that introduced the deprecation:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
Reference in New Issue
Block a user