IntellijAlpine icon indicating copy to clipboard operation
IntellijAlpine copied to clipboard

Using double curly brackets {{$example}} echo syntax in x-data attribute creates strange IDE warnings (phpstorm)

Open samcoupland opened this issue 7 months ago • 0 comments

Issue: When using the double curly brackets in x-data attributes, I often get IDE warnings.

Scenario x-data="{clicked{{ $model->getKey() }}: false}" or alpinejs1

IDE warning - comer expected alpinejs2

IDE warning - curly bracket expected alpinejs4

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.

samcoupland avatar Jul 08 '24 16:07 samcoupland