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
iterabletest - added an error when defining two blocks with the same name in a template
- added the
preserves_safetyoption 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