Twig_Filter_Function is deprecated