rcrowe/TwigBridge

Twig_Extension_Escaper::addSafeClass() not available with Twig <2.11.0

kiding opened this issue · 1 comments

$twig->getExtension(EscaperExtension::class)->addSafeClass($safeClass, $strategy);

Since Twig_Extension_Escaper::addSafeClass() was introduced with Twig 2.11.0 twigphp/Twig@b18733b, when used with <2.11.0 "Call to undefined method Twig_Extension_Escaper::addSafeClass()" error gets invoked.

"twig/twig": "~2.0",

The composer.json requirement should be changed to "^2.11.0" or something else.