a Sensio Labs Product

The flexible, fast, and secure
template language for PHP

Twig 1.7.0 released

I’ve just released Twig 1.7.0. It contains the following changes:

  • fixed template line number in some exceptions
  • added an iterable test
  • added an error when defining two blocks with the same name in a template
  • added the preserves_safety option for filters
  • fixed a PHP notice when trying to access a key on a non-object/array variable
  • enhanced error reporting when the template file is an instance of SplFileInfo
  • added Twig_Environment::mergeGlobals()
  • added compilation checks to avoid misuses of the sandbox tag
  • fixed filesystem loader freshness logic for high traffic websites
  • fixed random function when charset is null
This website is powered by PHP and Twig.