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

[TWIG] The spaceless tag is deprecated use filter instead #216

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

Prometee
Copy link
Contributor

@Prometee Prometee commented Apr 4, 2024

The spaceless filter was added in Twig 2.7.

Using Sylius 1.12.14 and going to the URL /admin/brands/new you will get this error without this PR:

Unexpected "spaceless" tag (expecting closing tag for the "block" tag defined near line 4).

image

Maybe spaceless can be also removed, or we can use Twig whitespace control:
https://twig.symfony.com/doc/2.x/templates.html#whitespace-control
WDTY @loevgaard ?

The spaceless filter was added in Twig 2.7.
@ebuildy
Copy link

ebuildy commented Oct 18, 2024

spaceless filter is deprecated, what about removing spaceless filter here? it seems useless.

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

Successfully merging this pull request may close these issues.

2 participants