mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
fixed wrong version in the docs
This commit is contained in:
+3
-3
@@ -722,8 +722,8 @@ tests.
|
||||
Other Operators
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. versionadded:: 1.11.2
|
||||
Support for the extended ternary operator was added in Twig 1.11.2.
|
||||
.. versionadded:: 1.12.0
|
||||
Support for the extended ternary operator was added in Twig 1.12.0.
|
||||
|
||||
The following operators are very useful but don't fit into any of the other
|
||||
categories:
|
||||
@@ -746,7 +746,7 @@ categories:
|
||||
|
||||
{{ foo ? 'yes' : 'no' }}
|
||||
|
||||
{# as of Twig 1.11.2 #}
|
||||
{# as of Twig 1.12.0 #}
|
||||
{{ foo ?: 'no' }} == {{ foo ? foo : 'no' }}
|
||||
{{ foo ? 'yes' }} == {{ foo ? 'yes' : '' }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user