Commit 1ce98c2
committed
minor #13594 Adding an if condition on a for tag is deprecated in Twig 2.10. (BooleanType)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead.
Discussion
----------
Adding an if condition on a for tag is deprecated in Twig 2.10.
I've got an error, running example from the docs. Here is the explanation: https://twig.symfony.com/doc/2.x/deprecated.html#tags
I propose to use a filter filter or an “if” condition inside the “for” body instead in this docs.
<!--
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
-------
ae6ae33 Adding an if condition on a for tag is deprecated in Twig 2.10.1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
0 commit comments