Answer the question
In order to leave comments, you need to log in
How to configure phpstorm to show variables from index file?
Good day !
The problem is:
I have a self-written MVC framework with the following folder structure:
Question 1: How can I make phpstorm inside application see the variables declared in index.php ?
Question 2: How can I make phpstorm start searching inside any child folder not from the directory in which the file is located, but directly from the directory in which index.php is located, that is, the root of the project?
Answer the question
In order to leave comments, you need to log in
For question 1:
Use phpdoc comments.
In any file write
/**
* @var int $myVar
* @var CustomType $myVar2
*/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question