Reputation: 609
Maybe this question has answers, but I find it hard to properly google it.
I have product with Laravel and React. And also I have PhpStorm, in which I work.
I set in Settings -> Language & Frameworks -> JavaScript
JavaScript language version React JSX
And it Settings -> Language & Frameworks -> PHP
PHP Language level: 7.1
And React settings override HTML code completion even in PHP (blade) files.
F.e. I want to type class=""
, but it autocompletes class=
with {}
class={}
How can I disable JS settings for React entirely for PHP files and why they work there at all (it's JS settings after all not PHP)?
Upvotes: 0
Views: 100