Update documentation version metadata

This commit is contained in:
Fabien Potencier
2026-08-29 08:55:02 +02:00
parent cabb305b5a
commit ffce60f985
3 changed files with 5 additions and 18 deletions
+4 -4
View File
@@ -38,16 +38,16 @@ rules:
yarn_dev_option_at_the_end: ~
versionadded_directive_major_version:
major_version: 3
major_version: 4
versionadded_directive_min_version:
min_version: '3.0'
min_version: '4.0'
deprecated_directive_major_version:
major_version: 3
major_version: 4
deprecated_directive_min_version:
min_version: '3.0'
min_version: '4.0'
whitelist:
lines:
+1 -4
View File
@@ -3,10 +3,7 @@
Documentation Comments
======================
.. versionadded:: 3.29
Documentation comments were added in Twig 3.29. This feature is
**experimental** and can change based on usage and feedback.
This feature is **experimental** and can change based on usage and feedback.
Documentation comments describe template constructs and variable bindings.
Tools such as IDEs, static analyzers and documentation generators can read this
-10
View File
@@ -649,12 +649,6 @@ exist:
{# Stringable object (cast via __toString) #}
{(uuid): 'token'}
.. versionadded:: 3.26.1
Support for arbitrary expressions as dynamic mapping keys
(attribute access, method calls, filter results, function calls,
and any ``Stringable`` object) was added in Twig 3.26.1.
.. note::
Inside a sandbox, the ``__toString()`` coercion goes through the
@@ -1170,10 +1164,6 @@ You can skip values by leaving a slot empty:
{# only assign the second value #}
{% do [, last] = ['Fabien', 'Potencier'] %}
.. versionadded:: 3.29
Support for destructuring iterators was introduced in Twig 3.29.
Sequence destructuring also works with iterators (any ``Traversable``
value). Values are extracted in iteration order and keys are ignored. The
iterator is consumed lazily: only as many values as there are slots in the