We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f8ada commit 840c73eCopy full SHA for 840c73e
src/TwigGenerator/Builder/BaseBuilder.php
@@ -343,7 +343,7 @@ protected function loadTwigExtensions(\Twig_Environment $twig)
343
} else {
344
$twigExtension = new $twigExtensionName();
345
}
346
- if (!$twig->hasExtension($twigExtension->getName())) {
+ if (!$twig->hasExtension(get_class($twigExtension))) {
347
$twig->addExtension($twigExtension);
348
349
0 commit comments