Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixing TWIG Deprecation warning for InitRuntimeInterface

I am getting the following TWIG deprecation warning:

The "Symfony\Bridge\Twig\Extension\FormExtension" class implements "Twig\Extension\InitRuntimeInterface" that is deprecated since Twig 2.7, to be removed in 3.0

However, I cannot find anything regarding what to change. Can someone point me in the right direction on how to resolve this warning?

like image 825
elyod72 Avatar asked Nov 07 '22 19:11

elyod72


1 Answers

I had the same error and updating twig from v2.7.2 to v2.7.4 fixed it.

composer update twig/twig

like image 193
Andrew Atkinson Avatar answered Nov 13 '22 20:11

Andrew Atkinson