UnusedVariable
: Variables defined inside for
should not be usable outside
#181
Labels
UnusedVariable
: Variables defined inside for
should not be usable outside
#181
In the current Twig documentation there is a note about variable scope defined inside
for
loops:https://twig.symfony.com/doc/3.x/tags/set.html
However, when I try to run
twigcs
on the following code:it does not consider
foo
variable inside the loop to be unused.Steps to reproduce
I created a failing test case (that should be passing) here: https://github.com/sustmi/twigcs/blob/19819daad7900dce0f18c4569b9f9fec539cdf11/tests/Twig3FunctionalTest.php#L231
The text was updated successfully, but these errors were encountered: