8000 minor #10215 Shorten ternary operator (royklutman) · symfony/symfony-docs@41ec44e · GitHub
[go: up one dir, main page]

Skip to content

Commit 41ec44e

Browse files
committed
minor #10215 Shorten ternary operator (royklutman)
This PR was merged into the 2.8 branch. Discussion ---------- 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) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- a0c9d3c Shorten ternary operator
2 parents 224afc0 + a0c9d3c commit 41ec44e

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)
0