Skip to content

v3.31.0

Latest

Choose a tag to compare

@fabpot fabpot released this 23 Nov 16:31
· 1 commit to 3.x since this release
Immutable release. Only release title and notes can be modified.
v3.31.0
fdcda27

Changelog (v3.30.0...v3.31.0)

  • bug #5042 Skip caching class lists longer than 2 KB in html_cva() (@nicolas-grekas)
  • bug #5043 Don't cache Intl formatters built from long patterns, attributes, or symbols (@nicolas-grekas)
  • bug #5044 Fully normalize template names in FilesystemLoader (@nicolas-grekas, @fabpot)
  • bug #5039 Fix a variable not being escaped when it has the name of a macro import alias of another scope (@jack-worman)
  • bug #4985 Normalize the template name in FilesystemLoader::getSourceContext() (@KalimeroMK)
  • bug #4987 Fix compiled templates depending on the directory of their source when debug is disabled (@nicolas-grekas)
  • minor #5009 Speed up the with tag by adding the globals to the new context in place (@nicolas-grekas)
  • feature #4995 Allow extending AttributeExtension to declare callables with attributes (@GromNaN)
  • bug #5017 Fix html_cva() ignoring a boolean default variant (@fabpot)
  • bug #5014 Fix PHP 8.5 deprecation in html_cva() when a recipe value is null (@goba)
  • feature #4997 Add the collate function to compare strings in the alphabetical order of a locale (@fabpot)
  • feature #4989 [3.x] Allow registering an extension class lazily with AttributeExtension (@nicolas-grekas)
  • feature #4991 Allow marking a Markup instance as safe for some escaping strategies only (@fabpot)
  • feature #4990 Consider a class safe for html_attr also safe for html_attr_relaxed and html at runtime (@fabpot)
  • bug #4992 Fix reading an attribute through its getter initializing a lazy object when the property is not public (@abp002)
  • minor #4984 Speed up applying html_cva() recipes that resolve to classes already seen (@Kocal)
  • bug #4988 Fix compiled float literals depending on the serialize_precision ini setting (@nicolas-grekas)
  • minor #4954 Speed up loading compiled templates that OPcache already holds (@nicolas-grekas)
  • minor #4976 Speed up traversing nodes with node visitors (@nicolas-grekas)
  • feature #4951 Allow skipping the directory check when adding paths to FilesystemLoader (@nicolas-grekas)
  • bug #4980 Fix the deprecated tag generating invalid PHP for an integer message (@fabpot)
  • bug #4974 Fix the loop variable of a for tag being undefined in the sequence of a nested loop (@fabpot)
  • bug #4979 Reject the spread operator outside sequences, mappings, and call arguments (@fabpot)
  • bug #4964 Discard what the non-selected branch of a guard tag registers on the parser (@fabpot)
  • bug #4960 Reset the escaping state when compiling a new template after a compilation error (@fabpot)
  • bug #4959 Reject a Template instance created by another environment when resolving templates (@fabpot)
  • bug #4972 Fix the sandbox not reporting the line of a rejected guard tag (@fabpot)
  • minor #4965 Rewrite the sandbox documentation around what developers need to know (@fabpot)
  • minor #4949 Skip the property checker call and memoize the class constant probe when reading an object attribute (@fabpot)
  • bug #4947 Stop looking up a macro twice in its own namespace when it is declared by a parent (@fabpot)