Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
911 stars 137 forks source link

Please consider documenting inspection 'You probably dont want to inject a "CLASS" here' #2387

Open jgxvx opened 2 months ago

jgxvx commented 2 months ago

It is not comprehensible why this inspection is triggered for certain arguments. It sporadically shows up when passing Doctrine entities to constructors of other classes.

The inspection is mentioned on the plugin homepage, but no further explanation is given. I am unable to find the inspection inside PhpStorm under Settings -> Editor -> Inspections.

Screenshot from 2024-07-09 15-56-56

brysn commented 1 month ago

+1 Is there a way to turn these inspections off? It's flagging things that don't need to be flagged.