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

Missing getName on Twig_ExtensionInterface throws error #169

Closed
TomCan opened this issue Apr 23, 2017 · 3 comments
Closed

Missing getName on Twig_ExtensionInterface throws error #169

TomCan opened this issue Apr 23, 2017 · 3 comments

Comments

@TomCan
Copy link
Contributor

TomCan commented Apr 23, 2017

I'm trying to implement this in Symfony 2.8 on PHP 7.0 and running against following error:

[Symfony\Component\Debug\Exception\FatalErrorException]
Error: Class Cocur\Slugify\Bridge\Twig\SlugifyExtension contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_ExtensionInterface::getName)

If I manually add the getName() function to the class, it doesn't throw the error.

@TomCan
Copy link
Contributor Author

TomCan commented Apr 23, 2017

#170

@JakeFr
Copy link
Contributor

JakeFr commented Jun 23, 2017

Requirement for version 1 of twig was updated from 1.12 to 1.26 in order to support twig 2.
Make sure your project requires "twig/twig": "~1.26"
See PR #162 and twig PR 2148

@florianeckerstorfer
Copy link
Member

Fixed by #170

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

3 participants