Skip to content

Commit dfb7d6f

Browse files
committed
Shorten ternary operator
Small fix, shorten the ternary operator as it does exactly the same: https://github.com/twigphp/Twig/blob/2.x/doc/templates.rst#other-operators (see ternary)
1 parent 88d2062 commit dfb7d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/twig_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ done by using a public ``vars`` property on the
340340
.. code-block:: html+twig
341341

342342
<label for="{{ form.name.vars.id }}"
343-
class="{{ form.name.vars.required ? 'required' : '' }}">
343+
class="{{ form.name.vars.required ? 'required' }}">
344344
{{ form.name.vars.label }}
345345
</label>
346346

0 commit comments

Comments
 (0)