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

Detect Twig depreciations #293

Open
prudloff-insite opened this issue Aug 21, 2023 · 0 comments
Open

Detect Twig depreciations #293

prudloff-insite opened this issue Aug 21, 2023 · 0 comments

Comments

@prudloff-insite
Copy link

It would be useful if twigcs could detect deprecated features: https://twig.symfony.com/doc/1.x/recipes.html#displaying-deprecation-notices

Steps required to reproduce the problem

  1. Write a Twig 2 template containing this:
{% spaceless %}
  <div>
  </div>
{% endspaceless %}
  1. Run ./vendor/bin/twigcs -t 2 on it.

Expected Result

twigcs warns that the spaceless tag is deprecated and removed in Twig 3.

Actual Result

No warning is displayed.

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