Skip to content

Commit 72db491

Browse files
committed
Use Twig\TwigFilter instead of \Twig_SimpleFilter.
1 parent 528b438 commit 72db491

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Twig/Extension/SyntaxExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
namespace Propel\Bundle\PropelBundle\Twig\Extension;
1111

12+
use Twig\TwigFilter;
13+
1214
/**
1315
* SyntaxExtension class
1416
*
@@ -21,7 +23,7 @@ class SyntaxExtension extends \Twig_Extension
2123
public function getFilters()
2224
{
2325
return array(
24-
new \Twig_SimpleFilter('format_sql', array($this, 'formatSQL'), array('is_safe' => array('html'))),
26+
new TwigFilter('format_sql', array($this, 'formatSQL'), array('is_safe' => array('html'))),
2527
);
2628
}
2729

0 commit comments

Comments
 (0)