github twigphp/Twig v3.28.0

5 hours ago

Changelog (v3.27.1...v3.28.0)

  • bug #4850 Render backed enums using their backing value in the html_attr function (@fabpot)
  • minor #4845 Add documention note about variable scope of override blocks in { embed ... only } (@andy-blum)
  • minor #4843 Define macros at the template root in the cache macro fixture (@fabpot)
  • bug #4841 Fix Markup truthiness in boolean expressions (@xtrime-ru)
  • bug #4842 Fix a PHP 8.5 chr() deprecation when decoding octal string escapes (@austinderrick)
  • feature #4292 Introduce a CorrectnessNodeVisitor to validate that templates are semantically correct (@fabpot)
  • feature #4840 Mark Markup as final (@fabpot)
  • feature #4838 Allow calling a macro with a dynamic name via the dot operator (@fabpot)
  • bug #4835 Fix markdown_to_html mangling content that starts with a blank line (@fabpot)
  • feature #4819 Add an allow-list for tests to the sandbox security policy (@fabpot)
  • minor #4837 Reduce memory usage of the context restoration compiled at the end of for loops (@fabpot)
  • feature #4816 Add an always_allowed_in_sandbox flag for filters, functions, and tags (@fabpot)
  • feature #4834 Track the source offset of each token and expose it in syntax errors (@fabpot)
  • minor #4836 Document how to customize the markdown_to_html converter (@fabpot)
  • minor #4662 CoreExtension::getAttribute: small improvement regarding getter/isser/hasser (@gharlan)
  • bug #4825 Make the include() function return a Markup object (@fabpot)
  • bug #4830 Fix nested block() resolution when a directly rendered block calls parent() (@fabpot)
  • minor #4827 Document {#--#} as the replacement for the deprecated spaceless filter (@fabpot)
  • bug #4828 Stop reporting a skipped test in IntegrationTestCase when there is no legacy test to run (@fabpot)
  • minor #4829 Document storing an enum in a variable to avoid repeating its FQCN (@fabpot)
  • bug #4824 Cast printed expressions to string so values that cannot be converted to a string (arrays, non-Stringable objects, ...) report a usable stack trace at the print location (@stof, @fabpot)
  • feature #4826 Make IntegrationTestCase and NodeTestCase compatible with PHPUnit 11 (@fabpot)
  • feature #4823 Skip the sandbox __toString check on arguments whose PHP parameter type cannot implicitly coerce to string (@fabpot)

Don't miss a new Twig release

NewReleases is sending notifications on new releases.