Closed borisbabic closed 6 years ago
@borisbabic Hello. As I see, DebugExtension
extends \Twig_Extension
, but not \Twig_ExtensionInterface
and \Twig_Extension
defines this method in 1.x branch: https://github.com/twigphp/Twig/blob/1.x/lib/Twig/Extension.php#L62
Could you please write more information about the case when you have issue. Write please specific version of twig.
In the project I noticed this in the version is 1.23.3.
I assumed the change was in 2.x but it seems like they introduced \Twig_Extension::getName
for deprecation in 1.26.0 (https://github.com/twigphp/Twig/commit/71f03df01191053d4559bf4788b0c691346a6c40), sorry about that.
@borisbabic thank you for contribution :+1:
In twig/twig 1.x
Twig_ExtensionInterface
declaresgetName
which the currentDebugExtension
is missing.