Twig v2.9.0 Release Notes

Release Date: 2019-04-28 // about 5 years ago
    • deprecated returning "false" to remove a Node from NodeVisitorInterface::leaveNode()
    • allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)
    • deprecated the "filter" tag (use the "apply" tag instead)
    • added the "apply" tag as a replacement for the "filter" tag
    • allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
    • added support for "Twig\Markup" instances in the "in" test
    • fixed "import" when macros are stored in a template string
    • fixed Lexer when using custom options containing the # char
    • added template line number to twig_get_attribute()