You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #42010 Improve usage of twig ternary (Seb33300)
This PR was merged into the 4.4 branch.
Discussion
----------
Improve usage of twig ternary
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | none
| License | MIT
| Doc PR | none
Remove useless `else` condition when using twig ternary:
> `{{ foo ? 'yes' }}` is the same as `{{ foo ? 'yes' : '' }}`
See: https://twig.symfony.com/doc/3.x/templates.html#other-operators
Commits
-------
4be962d323 Improve usage of twig ternary
0 commit comments