You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following code to be part of some template, where variable $block originates from somewhere else. Its defined somewhere else, before include was called so it indeed is available in the template:
Weird! I've reproduced in the test cases. Thanks for discovering this. I'll see what I can do.
In the meantime, you might find allowUndefinedVariablesInFileScope helpful for templates. It won't solve the problem if there are functions in there, and it means you won't get any warnings about undefined variables in the template, but it could be a compromise while this bug is being fixed.
Consider the following code to be part of some template, where variable
$block
originates from somewhere else. Its defined somewhere else, beforeinclude
was called so it indeed is available in the template:If you format ruelset to look like following:
the output would be:
Which is not the desired behavior.
Else statement requires special attention, but current implementation leads to false positives.
The text was updated successfully, but these errors were encountered: