Skip to content

Commit 840c73e

Browse files
committed
Twig 2.0 fix
1 parent b5f8ada commit 840c73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigGenerator/Builder/BaseBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected function loadTwigExtensions(\Twig_Environment $twig)
343343
} else {
344344
$twigExtension = new $twigExtensionName();
345345
}
346-
if (!$twig->hasExtension($twigExtension->getName())) {
346+
if (!$twig->hasExtension(get_class($twigExtension))) {
347347
$twig->addExtension($twigExtension);
348348
}
349349
}

0 commit comments

Comments
 (0)