Skip to content

Commit 7f610b1

Browse files
committed
use \Twig_SimpleFilter
The \Twig_Method_Filter has been deprecated.
1 parent 0aa63c1 commit 7f610b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Twig/Extension/SyntaxExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SyntaxExtension extends \Twig_Extension
2222
public function getFilters()
2323
{
2424
return array(
25-
'format_sql' => new \Twig_Filter_Method($this, 'formatSQL', array('is_safe' => array('html'))),
25+
new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL'), array('is_safe' => array('html'))),
2626
);
2727
}
2828

0 commit comments

Comments
 (0)