schmittjoh/twig.js — Issue #6: Node "ifexpr" does not exist for Node "Twig_Node_For"
Author: anod
Created: 2012-01-16 07:50:06+00:00
State: open

Hello,

I'm using twig version 1.5, function $node->getNode('ifexpr') throws an exception.

Exception throws in ForCompiler.php(123): Twig_Node->getNode('ifexpr')

There is a couple of places where getNode is called: if (null !== $node->getNode('ifexpr'))
and all of them needs to be updated with if ($node->hasNode('ifexpr'))

I can commit a patch, but not sure what is the right way to do it....

Thank you.