Skip to content

Commit

Permalink
Merge pull request #733 from enumag/patch-2
Browse files Browse the repository at this point in the history
Fix deprecation with Twig 2.7
  • Loading branch information
goetas committed Mar 21, 2019
2 parents 6dffb4d + 33c02c9 commit 7b09ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/TwigExtensionPass.php
Expand Up @@ -13,7 +13,7 @@ public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('twig.runtime_loader')
|| !class_exists(SerializerRuntimeExtension::class)
|| !interface_exists('Twig_RuntimeLoaderInterface')
|| !(interface_exists('Twig\RuntimeLoader\RuntimeLoaderInterface') || interface_exists('Twig_RuntimeLoaderInterface'))
|| !class_exists(SerializerRuntimeHelper::class)
) {
$container->removeDefinition('jms_serializer.twig_extension.serializer_runtime_helper');
Expand Down

0 comments on commit 7b09ece

Please sign in to comment.