Is there a way to avoid indexing * .phar files in PHPStorm?

I know how to exclude meta and log files from including an index , but in my composer.json application I have both Guzzle and Goutte listed as dependencies. Goutte includes goutte.phar , which in turn contains the source code for Guzzle. So when I use autocomplete, I get the following:

PHPS storm finds a PHP class twice because it indexes a * .phar file

Is it possible to exclude a * .phar file (or any specific PHP file) from PHPStorm indexes at all?

+6
source share
2 answers

Right-click on this file and select the mark as → excluded?

+9
source

In docs :

In the project tool window, select the desired .phar archive and select "Exclude phar from project" in the selection context menu.

+10
source

All Articles