Question

I know how to exclude meta and log files from index inclusion but in my application's composer.json I have both Guzzle and Goutte listed as dependencies. Goutte includes a goutte.phar which in turn contains the source code for Guzzle. So when I go to use autocompletion I get this:

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

Is there anyway to exclude a *.phar file (or any specific PHP file for that matter) from the PHPStorm indices?

Was it helpful?

Solution

Right click on that file and select mark as -> excluded?

OTHER TIPS

From the docs :

In the Project tool window, select the required .phar archive and choose Exclude phar from project on the context menu of the selection.

otherwise you can add *.phar to Settings -> Editor -> File types -> Ignored files and folders

Ignored files and folders

or alternatively to Settings -> Directories -> Exclude files

Directories

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top