Twig_Function_Method deprecated function has been replaced by the good one