Bug Report
| Subject |
Details |
| Rector version |
2.6.2 |
| symfony |
6.4 |
| twig/twig |
3.28.0 |
Minimal PHP Code Causing Issue
I use withComposerBased and have Symfony 6.4 and Twig 3.28 installed.
>withAttributesSets()
->withComposerBased(twig: true, symfony: true)
Rector executes the rule GetFiltersAndFunctionsToAsTwigAttributeRector. However, the two Twig Attributes were introduced in Symfony 7.3 and do nothing in previous Symfony versions. Since the TwigExtension is removed with the rule, the Twig filters and function will not be available anymore.
Expected Behaviour
The rule should only be executed if Twig >= 3.21 and Symfony >= 7.3.
Bug Report
Minimal PHP Code Causing Issue
I use
withComposerBasedand have Symfony 6.4 and Twig 3.28 installed.Rector executes the rule
GetFiltersAndFunctionsToAsTwigAttributeRector. However, the two Twig Attributes were introduced in Symfony 7.3 and do nothing in previous Symfony versions. Since the TwigExtension is removed with the rule, the Twig filters and function will not be available anymore.Expected Behaviour
The rule should only be executed if Twig >= 3.21 and Symfony >= 7.3.