Twig v2.11.0 Release Notes
Release Date: 2019-05-31 // almost 5 years ago-
- added the possibility to register classes/interfaces as being safe for the escaper ("EscaperExtension::addSafeClass()")
- deprecated CoreExtension::setEscaper() and CoreExtension::getEscapers() in favor of the same methods on EscaperExtension
- macros are now auto-imported in the template they are defined (under the
_self
variable) - added support for macros on "is defined" tests
- fixed macros "import" when using the same name in the parent and child templates
- fixed recursive macros
- macros imported "globally" in a template are now available in macros without re-importing them
- fixed the "filter" filter when the argument is \Traversable but does not implement \Iterator (\SimpleXmlElement for instance)
- fixed a PHP fatal error when calling a macro imported in a block in a nested block
- fixed a PHP fatal error when calling a macro imported in the template in another macro
- fixed wrong error message on "import" and "from"