github twigphp/Twig v3.29.0

6 hours ago

Changelog (v3.28.0...v3.29.0)

  • feature #4910 Reject template wrappers from another environment (@fabpot)
  • bug #4927 Report a clear error when using macros imported in a template body that was not rendered (@fabpot)
  • feature #4926 Allow block chains to be composed of other block chains (@fabpot)
  • feature #4925 Resolve block chains against the render context (@fabpot)
  • bug #4924 Resolve constant parent templates once instead of on every lookup (@fabpot)
  • bug #4923 Fix wrapping the Twig cache pool in a second tag aware adapter (@nicolas-grekas)
  • feature #4917 Template runtime and block composition (@fabpot)
  • bug #4918 Check that the use tag is allowed before resolving trait templates (@fabpot)
  • bug #4922 Wrap dynamic parent expression errors (@fabpot)
  • bug #4921 Fix TemplateWrapper::hasBlock() and TemplateWrapper::getBlockNames() omitting environment globals (@fabpot)
  • bug #4916 Fix html_attr dropping style declarations whose value is zero (@dylanpulver)
  • bug #4915 Fix the default filter fallback reusing a null-safe temporary variable (@lazerg, @fabpot)
  • minor #4908 Remove the documentation comments compilation overhead (@fabpot)
  • minor #4904 Release destructuring temporaries after assignment (@fabpot)
  • bug #4909 Report regular expression errors from the matches operator (@fabpot)
  • bug #4906 Deprecate prefixed macro definedness checks (@fabpot)
  • bug #4907 Fix duplicate macro deprecation wording (@fabpot)
  • bug #4905 Throw when list formatting fails (@fabpot)
  • feature #4902 Remove lazy macro import resolution (@fabpot)
  • bug #4900 Honor date formatter prototype calendars (@fabpot)
  • bug #4899 Fix Stringable keys for ArrayAccess implementations (@fabpot)
  • bug #4901 Evaluate object destructuring expressions once (@fabpot)
  • bug #4896 Restore void return type compatibility for extension points (@fabpot)
  • bug #4898 Reject destructuring patterns containing no variables (@fabpot)
  • feature #4895 Extract htmlAttrValue() from html_attr for standalone attribute rendering (@Kocal)
  • bug #4894 Fix an empty destructuring pattern triggering a PHP fatal error instead of a SyntaxError (@fabpot)
  • feature #4893 Fix array destructuring from a Traversable (@iliaal, @fabpot)
  • bug #4892 Register the missing extra callables in MissingExtensionSuggestor (@smnandre)
  • bug #4891 Fix the empty comment "{##}" being lexed as a documentation comment opening (@Amoifr)
  • feature #4871 Attach documentation comments to nodes (@fabpot)
  • feature #4434 Add the include_only function (@fabpot)
  • feature #4890 Add support for tempest/markdown in markdown-extra (@ker0x)
  • feature #4881 Nested macro imports (@fabpot)
  • feature #4878 Deprecate using parentheses when testing a macro with the defined test (@fabpot)
  • feature #4851 Redesign macro calls and argument handling (@fabpot)
  • feature #4854 Make the sandbox a first-class citizen with a dedicated Sandbox class (@fabpot)
  • feature #4877 Deprecate macro calls without parentheses (@fabpot)
  • feature #4876 Rename macro variable AST nodes (@fabpot)
  • feature #4874 Normalize destructuring assignment targets (@fabpot)
  • feature #4873 Deprecate duplicate macro definitions (@fabpot)
  • bug #4859 Fix IntlExtension ignoring explicit formats when a date formatter prototype is set (@fabpot)
  • feature #4852 [Intl] Add format_list filter using PHP 8.5's IntlListFormatter (@BreyndotEchse)
  • bug #4856 Fix array access with a Stringable key on ArrayAccess objects using object keys (@fabpot)
  • bug #4853 Throw a SyntaxError instead of a PHP fatal error when a macro argument is defined twice (@fabpot)

Don't miss a new Twig release

NewReleases is sending notifications on new releases.