IntellijAlpine
IntellijAlpine copied to clipboard
Using double curly brackets {{$example}} echo syntax in x-data attribute creates strange IDE warnings (phpstorm)
Issue: When using the double curly brackets in x-data attributes, I often get IDE warnings.
Scenario
x-data="{clicked{{ $model->getKey() }}: false}"
or
IDE warning - comer expected
IDE warning - curly bracket expected
I am using the brackets to build unique x-data based on table element's model counterpart. I assume quite a common pattern. Not sure why it's flagging these issues.