Fix doc notes

This commit is contained in:
Fabien Potencier
2026-01-21 08:34:47 +01:00
parent be1797da0c
commit 85ccfb10c2
+6 -3
View File
@@ -796,9 +796,12 @@ Operators
.. versionadded:: 3.21
The ``getExpressionParsers()`` method was added in Twig 3.21 to replace the
deprecated ``getOperators()`` method. See the :doc:`deprecated
<deprecated>` page for details on how to upgrade from ``getOperators()`` to
``getExpressionParsers()``.
deprecated ``getOperators()`` method.
.. deprecated:: 3.21
See the :doc:`deprecated <deprecated>` page for details on how to upgrade
from ``getOperators()`` to ``getExpressionParsers()``.
The ``getExpressionParsers()`` method lets you add new operators. To implement
a new one, have a look at the default operators provided by