merged branch ShadowPrince/master (PR #1042)
authorFabien Potencier <fabien.potencier@gmail.com>
Mon, 1 Apr 2013 08:26:39 +0000 (10:26 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Mon, 1 Apr 2013 08:26:39 +0000 (10:26 +0200)
commit296bae96e79e37dbea84fe33894b8331de6f146c
treebf6d5fb305ecc9ad45a772693df7cb28d0320178
parente8991cc2f9c84b2b5c782203904898717d46e56a
parent92e97b9d900562dafc3703e43c4aee3e5dfe4b69
merged branch ShadowPrince/master (PR #1042)

This PR was squashed before being merged into the master branch (closes #1042).

Discussion
----------

Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error

Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error:

$environment->addFunction(new Twig_SimpleFunction(...))
after 
$environment->render(...)
throws Fatal Error: 
object of Twig_SimpleFunction could not be converted to string

Commits
-------

92e97b9 Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error