merge the Nodes and Node sections

This commit is contained in:
Christian Flothmann
2025-02-28 14:40:03 +01:00
parent 76b86aa9da
commit f8b01ebd98
+18 -21
View File
@@ -199,6 +199,24 @@ Nodes
* The ``is_defined_test`` attribute is deprecated as of Twig 3.21, use * The ``is_defined_test`` attribute is deprecated as of Twig 3.21, use
``Twig\Node\Expression\SupportDefinedTestInterface`` instead. ``Twig\Node\Expression\SupportDefinedTestInterface`` instead.
* Instantiating ``Twig\Node\Node`` directly is deprecated as of Twig 3.15. Use
``EmptyNode`` or ``Nodes`` instead depending on the use case. The
``Twig\Node\Node`` class will be abstract in Twig 4.0.
* Not passing ``AbstractExpression`` arguments to the following ``Node`` class
constructors is deprecated as of Twig 3.15:
* ``AbstractBinary``
* ``AbstractUnary``
* ``BlockReferenceExpression``
* ``TestExpression``
* ``DefinedTest``
* ``FilterExpression``
* ``RawFilter``
* ``DefaultFilter``
* ``InlinePrint``
* ``NullCoalesceExpression``
Node Visitors Node Visitors
------------- -------------
@@ -357,27 +375,6 @@ Functions/Filters/Tests
``TwigFunction::getSafe()`` is deprecated as of Twig 3.16; return ``[]`` ``TwigFunction::getSafe()`` is deprecated as of Twig 3.16; return ``[]``
instead. instead.
Node
----
* Instantiating ``Twig\Node\Node`` directly is deprecated as of Twig 3.15. Use
``EmptyNode`` or ``Nodes`` instead depending on the use case. The
``Twig\Node\Node`` class will be abstract in Twig 4.0.
* Not passing ``AbstractExpression`` arguments to the following ``Node`` class
constructors is deprecated as of Twig 3.15:
* ``AbstractBinary``
* ``AbstractUnary``
* ``BlockReferenceExpression``
* ``TestExpression``
* ``DefinedTest``
* ``FilterExpression``
* ``RawFilter``
* ``DefaultFilter``
* ``InlinePrint``
* ``NullCoalesceExpression``
Operators Operators
--------- ---------