merged branch hason/arrayloader (PR #542)
Commits
-------
16d7800 fixed a crash when an object with __toString() method is passed as template name
Discussion
----------
fixed a crash when an object with __toString() method is passed as templ...
...ate name
---------------------------------------------------------------------------
by fabpot at 2011/12/01 03:58:47 -0800
Not sure about this one as the phpdoc clearly state that the name is a string. Do you have a specific user case in mind?
---------------------------------------------------------------------------
by hason at 2011/12/01 04:26:47 -0800
I use the class "Twig_Loader_Chain" as template loader in Symfony2 application. One of the embeded loaders is "Twig_Loader_Array". In Symfony2 is used "Symfony\Component\Templating\TemplateReferenceInterface" for internal representation of a template and it causes a crash.