Fix the deprecation warning for functions and tests
Fix the deprecation warning for functions and tests

nicolas-grekas/Twig,huang53798584/Twig,twigphp/Twig,gencer/Twig,fsw/Twig,fsw/Twig,Rvanlaak/Twig,craue/Twig,moufmouf/Twig,twigphp/Twig,znerol/Twig,hhamon/Twig,hhamon/Twig,dkarvounaris/Twig,znerol/Twig,gamernetwork/Twig,dkarvounaris/Twig,nicolas-grekas/Twig,apishka/templater,jamessingizi/Twig,dkarvounaris/Twig,jamessingizi/Twig,huang53798584/Twig,fsw/Twig,derickr/Twig,Rvanlaak/Twig,hhamon/Twig,znerol/Twig,framewr/Twig,twigphp/Twig,iKwinto/Twig,iKwinto/Twig,nicolas-grekas/Twig,framewr/Twig,iKwinto/Twig,derickr/Twig,nicolas-grekas/Twig,framewr/Twig,loi-chuanoi/Twig,apishka/templater,craue/Twig,gencer/Twig,huang53798584/Twig,nicolas-grekas/Twig,gamernetwork/Twig,moufmouf/Twig,Rvanlaak/Twig,moufmouf/Twig,jamessingizi/Twig,derickr/Twig,gamernetwork/Twig