Document OPTIMIZE_TEXT_NODES

(and remove obselete OPTIMIZE_VAR_ACCESS)
This commit is contained in:
Simon André
2024-06-30 10:13:10 +02:00
parent 045f5adec7
commit 491a84175d
+2 -2
View File
@@ -563,8 +563,8 @@ Twig supports the following optimizations:
* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_RAW_FILTER``, removes the ``raw``
filter whenever possible.
* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_VAR_ACCESS``, simplifies the creation
and access of variables in the compiled templates whenever possible.
* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_TEXT_NODES``, optimizes the text
nodes by merging consecutive text nodes into a single one.
Exceptions
----------