Conversation
The spaceless tag is deprecated in Twig 2.7. Use the spaceless filter instead or {% apply spaceless %} (the Twig\Node\SpacelessNode and Twig\TokenParser\SpacelessTokenParser classes are also deprecated).
|
This needs to be merged as it prevents this bundle from working on Symfony 4. |
|
@sumuhire I'd be more than happy to accept these and other changes into the fork I've created (and commited to maintain it) so we can all benefit from this. This is the forked repository link: https://github.com/carlos-mg89/symfony-captcha-bundle It's published in Packagist and has already been updated so at least the code compiles. But things like the one you're talking about in this PR would most likely be an issue, if not in the short term, in the long term for sure. |
|
@sumuhire no worries, I've ended up making a pull request myself, since this was a major issue and the deprecated tag made the twig template to not compile. However, feel free to send PRs if you fancy to improve the project. |
The spaceless tag is deprecated in Twig 2.7. Use the spaceless filter instead or {% apply spaceless %} (the Twig\Node\SpacelessNode and Twig\TokenParser\SpacelessTokenParser classes are also deprecated).