Twig v2.12.0 Release Notes
Release Date: 2019-10-05 // over 4 years ago-
- added the spaceship operator ("<=>"), useful when using an arrow function in the "sort" filter
- added support for an "arrow" function on the "sort" filter
- added the CssInliner extension in the "extra" repositories: "inline_css" filter
- added the Inky extension in the "extra" repositories: "inky_to_html" filter
- added Intl extension in the "extra" repositories: "country_name", "currency_name", "currency_symbol", "language_name", "locale_name", "timezone_name", "format_currency", "format_number", "format_*_number", "format_datetime", "format_date", and "format_time" filters, and the "country_timezones" function
- added the Markdown extension in the "extra" repositories: "markdown_to_html", and "html_to_markdown" filters
- added the HtmlExtension extension in the "extra" repositories: "date_uri" filter, and "html_classes" function
- optimized "block('foo') ?? 'bar'"
- fixed the empty test on Traversable instances
- fixed array_key_exists() on objects
- fixed cache when opcache is installed but disabled
- fixed using macros in arrow functions
- fixed split filter on edge case