mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
Update documentation version metadata
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user