Hey guys, coming from notepad++, PhpStorm is utterly amazing, however I'm trying to figure out if I'm doing something wrong of if PhpStorm just doesn't work this way. The two biggest questions I have at the moment are:
I believe I read on this forum that PhpStorm's Inspect Code doesn't "read"/"parse" (I am using a local php server setup and PhpStorm sees it) include/require files and/or variables? As an example, I have two files: index.php, core.php. Inside index.php it calls core.php via require_once 'core.php'. If I Inspect Code on index.php it says $variable is undefined. Well yes, it is, in index.php however it's defined inside of a while loop in core.php. Is that expected behavior to show it as undefined, just this in this example (inside a while loop) or will it always say it's undefined since it's not actually defined in index.php?
In the same type of example, how does "Unused local variable" work? I try another test and remove any calls to $variable in either file (although $variable IS still defined inside of the while loop) and Inspect Code doesn't show $variable as unused?
Thanks for any clarification.