From: Fabien Potencier Date: Fri, 2 Dec 2011 14:11:24 +0000 (+0100) Subject: merged branch hason/arrayloader (PR #542) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b2149e7955c78f4914935f0bc3f02bb6c96946f2;p=konrad%2Ftwig.git 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. --- b2149e7955c78f4914935f0bc3f02bb6c96946f2