Twig: User Deprecated: The Twig_TokenParser_Include class is considered final. You should not extend it from Twig_TokenParser_Embed

Created on 26 Apr 2017  路  4Comments  路  Source: twigphp/Twig

I currently get the following deprecated message in Symfony 3.3-DEV with Twig:

User Deprecated: The Twig_TokenParser_Include class is considered final. It may change without further notice as of its next major version. You should not extend it from Twig_TokenParser_Embed.

Also related https://github.com/symfony/symfony/issues/22533

Most helpful comment

Can this also be merged into the ^1 branch?

All 4 comments

fixed in a083db55

Can this also be merged into the ^1 branch?

@fabpot please, could you merge https://github.com/twigphp/Twig/commit/a083db55c242ed30451467c802633cddbad198ed into the 1.x branch too as it's the only User Deprecated error I have in my symfony 3.3 project (and I currently don't have enough time to migrate to Twig 2.x)

EDIT: It seems to be merged alredy, but no tag including this fix has been dumped yet

There is no @final annotation on this class in 1.x anymore. It was removed in a083db5.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericmorand picture ericmorand  路  4Comments

su-narthur picture su-narthur  路  6Comments

mmarton picture mmarton  路  4Comments

koflerdavid picture koflerdavid  路  3Comments

rungta picture rungta  路  3Comments