We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e45781 commit b8efb9eCopy full SHA for b8efb9e
src/Assetic/Extension/Twig/TwigFormulaLoader.php
@@ -61,7 +61,10 @@ private function loadNode(\Twig_Node $node)
61
),
62
);
63
} elseif ($node instanceof \Twig_Node_Expression_Function) {
64
- $name = $node->getNode('name')->getAttribute('name');
+ $name = version_compare(\Twig_Environment::VERSION, '1.2.0-DEV', '<')
65
+ ? $node->getNode('name')->getAttribute('name')
66
+ : $node->getAttribute('name');
67
+
68
if ($this->twig->getFunction($name) instanceof AsseticFilterFunction) {
69
$arguments = array();
70
foreach ($node->getNode('arguments') as $argument) {
0 commit comments