mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

Auto fix for filter used in invalid context #152

Closed mabar closed 5 months ago

mabar commented 9 months ago

Is your feature request related to a problem? Please describe.

Both Latte (since 2.9) and plugin report that filters can't be used in tag {php}. That's not exactly right, because if wrapped in parentheses, the filter works inside {php} tag. https://fiddle.nette.org/latte/#a7e87189e5

Describe the solution you'd like

Offer auto fix by wrapping variable and filter in parentheses.

Additional context

image

image

mesour commented 5 months ago

It will be fiexed in 1.3