fixed typo
authorFabien Potencier <fabien.potencier@gmail.com>
Mon, 23 Jan 2012 09:19:16 +0000 (10:19 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Mon, 23 Jan 2012 09:19:16 +0000 (10:19 +0100)
lib/Twig/ExpressionParser.php

index 8cf91d8..0f35930 100644 (file)
@@ -469,7 +469,7 @@ class Twig_ExpressionParser
     protected function getFunctionNodeClass($name)
     {
         $functionMap = $this->parser->getEnvironment()->getFunctions();
-        if (isset($functionMap[$name]) && $functionMap[$name] instanceof Twig_Filter_Node) {
+        if (isset($functionMap[$name]) && $functionMap[$name] instanceof Twig_Function_Node) {
             return $functionMap[$name]->getClass();
         }