symfony/AsseticBundle — Issue #71: Template compilation exception due to change in Twig master branch
Author: calumbrodie
Created: 2012-03-02 04:57:10+00:00
State: open

line 63 of this file

https://github.com/symfony/AsseticBundle/blob/master/Twig/AsseticNodeVisitor.php

is causing a fatal error due a change made in the following pull in the Twig Master Branch

https://github.com/fabpot/Twig/commit/883a93bb4da3f8fede107a53032ef2b9d6ee22eb

file: lib/Twig/Node/Expression/GetAttr.php (line 14, the constructor)

The context:
I'm trying to use the jpegoptim filter in assetic, though the twig extension and receiving the following exception.

An exception has been thrown during the compilation of a template ("Catchable Fatal Error: Argument 3 passed to Twig_Node_Expression_GetAttr::__construct() must be an instance of Twig_Node_Expression_Array, instance of Twig_Node given, called in /myproject/vendor/bundles/Symfony/Bundle/AsseticBundle/Twig/AsseticNodeVisitor.php on line 66 and defined in /myproject/vendor/twig/lib/Twig/Node/Expression/GetAttr.php line 14") in "MyPageBundle::home.html.twig".