mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
8d9e08518e13efe068e138f9c678c4e31f02c3c4
Commits -------569f782fix ZTS build1606910Fix undefined behavior0ce8d3cConvert item argument to stringd807981don't try to access non public property or method7e566b8test twig_template_get_attributes Discussion ---------- twig_template_get_attributes tests and fixes This enables testing of twig_template_get_attributes (every TemplateTest test is ran against twig_template_get_attributes too) and fixes some bugs I've found. There is still 3 failing tests due to a difference of how twig_template_get_attributes and Twig_Template::getAttribute use Twig_Template::$cache. Twig_Template::getAttribute doesn't cache properties, and twig_template_get_attributes expects $cache[$class]['properties'] to be set if $cache[$class] is set. So twig_template_get_attributes can fail if the cache is already populated by Twig_Template::getAttribute.
…
…
…
Twig, the flexible, fast, and secure template language for PHP
Twig is a template language for PHP, released under the new BSD license (code and documentation).
Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.
Description
Languages
PHP
99.9%