All Versions
217
Latest Version
Avg Release Cycle
44 days
Latest Release
584 days ago

Changelog History
Page 5

  • v2.12.3 Changes

    December 28, 2019
    • fixed Symfony 5.0 support for the HTML extra extension
    • fixed number formatter in Intl extra extension when using a formatter prototype
  • v2.12.2 Changes

    November 11, 2019
    • added supported for exponential numbers
  • v2.12.1 Changes

    October 17, 2019
    • added the String extension in the "extra" repositories: "u" filter
  • v2.12.0 Changes

    October 05, 2019
    • 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
  • v2.11.3 Changes

    June 18, 2019
    • display partial output (PHP buffer) when an error occurs in debug mode
    • fixed the filter filter (allow the result to be used several times)
    • fixed macro auto-import when a template contains only macros
  • v2.11.2 Changes

    June 05, 2019
    • fixed macro auto-import
  • v2.11.1 Changes

    June 04, 2019
    • added support for "Twig\Markup" instances in the "in" test (again)
    • allowed string operators as variables names in assignments
    • fixed support for macros defined in parent templates
  • v2.11.0 Changes

    May 31, 2019
    • 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"
  • v2.10.0 Changes

    May 14, 2019
    • deprecated "if" conditions on "for" tags
    • added "filter", "map", and "reduce" filters (and support for arrow functions)
    • fixed partial output leak when a PHP fatal error occurs
    • optimized context access on PHP 7.4
  • v2.9.0 Changes

    April 28, 2019
    • 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()