We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aa63c1 commit 7f610b1Copy full SHA for 7f610b1
1 file changed
Twig/Extension/SyntaxExtension.php
@@ -22,7 +22,7 @@ class SyntaxExtension extends \Twig_Extension
22
public function getFilters()
23
{
24
return array(
25
- 'format_sql' => new \Twig_Filter_Method($this, 'formatSQL', array('is_safe' => array('html'))),
+ new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL'), array('is_safe' => array('html'))),
26
);
27
}
28
0 commit comments