twigcs icon indicating copy to clipboard operation
twigcs copied to clipboard

Detect Twig depreciations

Open prudloff-insite opened this issue 1 year ago • 0 comments

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.

prudloff-insite avatar Aug 21 '23 09:08 prudloff-insite