diff --git a/Twig/DumpyTwigFilter.php b/Twig/DumpyTwigFilter.php index 5221ea3..38b88eb 100755 --- a/Twig/DumpyTwigFilter.php +++ b/Twig/DumpyTwigFilter.php @@ -51,9 +51,9 @@ public function getFilters() $optionsForRaw = array('is_safe' => array('all')); // allows raw dumping (otherwise
 is encoded)
 
         return array(
-            'pre'   => new \Twig_Filter_Method($this, 'pre', $optionsForRaw),
-            'dump'  => new \Twig_Filter_Method($this, 'preDump', $optionsForRaw),
-            'dumpy' => new \Twig_Filter_Method($this, 'preYamlDump', $optionsForRaw),
+            'pre'   => new \Twig_SimpleFilter('pre', array($this, 'pre'), $optionsForRaw),
+            'dump'  => new \Twig_SimpleFilter('dump', array($this, 'preDump'), $optionsForRaw),
+            'dumpy' => new \Twig_SimpleFilter('dumpy', array($this, 'preYamlDump'), $optionsForRaw),
         );
     }