I've taken a look at this question, but unfortuently there is no answer.
I'm using PhpStorm and I am building a project with a composer project loaded. I'm trying to make it so that PhpStorm recognises my classes/functions when I ctrl+click on them, specifically, for the projects installed via composer.
I have tried changing the Source Folders
in Settings
/Directories
but I still cannot get this to work.
I am using
require __DIR__ . '/vendor/autoload.php';
to load my composer dependancies.
What do I need to do for PhpStorm to recognise my declarations from files loaded through composer?
To support my question, here is some pictures:
My test.php file: (notice how it can't recognise my class):
project/test.php
A project added via composer and installed using autoloader:
project/vendor/braintree/braintree_php/lib/Braintree/Subscription.php