Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated error with Twig 2.7.2 #731

Closed
barell opened this issue Mar 15, 2019 · 1 comment
Closed

Deprecated error with Twig 2.7.2 #731

barell opened this issue Mar 15, 2019 · 1 comment

Comments

@barell
Copy link

barell commented Mar 15, 2019

I use Symfony 3.4.22 and just updated my Twig to 2.7.2 as there was vulnerability discovered in version 2.5.0.

After upgrading Twig, I started to see deprecated warnings:

Using the "Twig_RuntimeLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\RuntimeLoaderInterface" instead.

Not sure if this is related to bundle or serializer itself but this is full error trace:

Using the "Twig_RuntimeLoaderInterface" class is deprecated since Twig version 2.7, use "Twig\RuntimeLoader\RuntimeLoaderInterface" instead.
Stack trace:
#0 vendor/twig/twig/lib/Twig/RuntimeLoaderInterface.php(7): trigger_error('Using the "Twig...', 16384)
#1 vendor/composer/ClassLoader.php(444): include('/app/vendor/twi...')
#2 vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/app/vendor/com...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('Twig_RuntimeLoa...')
#4 [internal function]: spl_autoload_call('Twig_RuntimeLoa...')
#5 vendor/jms/serializer-bundle/DependencyInjection/Compiler/TwigExtensionPass.php(14): interface_exists('Twig_RuntimeLoa...')
#6 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(141): JMS\SerializerBundle\DependencyInjection\Compiler\TwigExtensionPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#7 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(788): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#8 vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(637): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#9 vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(135): Symfony\Component\HttpKernel\Kernel->initializeContainer()

So I was trying to upgrade jms/serializer-bundle to latest version but the error didn't disappear.

@goetas
Copy link
Collaborator

goetas commented Mar 21, 2019

fixed buy #733

@goetas goetas closed this as completed Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants