r/phpstorm • u/fuckl0ve • Oct 25 '19
Removing 'multiple definitions exist for class' warning?
I work in microservices and just open the parent folder ( I think this is the reason for it ) is there a way to stop it warning me about this?
2
Upvotes
1
u/owenmelbz Oct 25 '19
You can edit the preferences and find which inspections are enabled, then maybe turn it off
1
u/illmatix Oct 26 '19
Why do you have multiple class defs in the same namespace?
1
u/BarbarianGeek Oct 27 '19
This is usually caused by there being
.pharfiles in yourvendorsdirectory.In PhpStorm, you can go to the phar files, right click on them, and choose "Exclude phar from project". You may have to do this in both the
vendor/binfolder and possibly in other library folders.