This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #282 Twig 2.10 Deprecation Update to swiftmailer.html.twig (KrisC…
…arr) This PR was merged into the 3.2-dev branch. Discussion ---------- Twig 2.10 Deprecation Update to swiftmailer.html.twig This change addresses the following Twig deprecation: > Adding an if condition on a for tag is deprecated in Twig 2.10. Use a filter filter or an "if" condition inside the "for" body instead (if your condition depends on a variable updated inside the loop). https://twig.symfony.com/doc/2.x/deprecated.html This solution uses the "filter" filter to maintain the single-tag "for" previously in place over adding a separate "if" tag. This requires Twig 1.41 or higher. (https://twig.symfony.com/doc/2.x/filters/filter.html) A solution that does not use "filter" can be found at #284 Commits ------- ad98ef1 Update swiftmailer.html.twig
- Loading branch information