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 spaceless tag since Twig 2.7 #472

Open
KatharinaSt opened this issue Jan 29, 2021 · 0 comments
Open

Deprecated spaceless tag since Twig 2.7 #472

KatharinaSt opened this issue Jan 29, 2021 · 0 comments

Comments

@KatharinaSt
Copy link
Contributor

Hi folks,

in my project I get a bunch of info messages regarding the following deprecation:

User Deprecated: The spaceless tag in "BraincraftedBootstrapBundle:Form:bootstrap.html.twig" at line 6 is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead.

The fix should be easy to make:
Replace
{% spaceless %}...{% endspaceless %}
by
{% apply spaceless %}...{% endapply %}

As this would conflict with the current composer.json I suppose a pull request with this change would crash the dependency structure of this project:
"twig/twig": "~1.12|~2.0@dev"

The spaceless filter has been introduced in Twig 2.7.
https://twig.symfony.com/doc/2.x/filters/spaceless.html

Are there any plans for this project to support such newer library versions in the future or is it just kept for legacy support reasons?

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

1 participant