Code Insight and completion has improved a lot in version 4 and the "find declaration" in 4.0.1 is something I had been dreaming of since day 1 I used PhpEd. Very nice!
There is still a little feature that I'm missing badly: easy code completion / find declaration on global variables defined in another file.
I know you like code samples, so here is a small one (I am using PHP 4):
inc.php:
class Y
{
var $X;
}
$Y = & new Y();
|
main.php:
PhpEd says it fails to find type of variable Y. So I need to do this instead:
main.php:
include("inc.php");
/**
* @var Y
*/
global $Y;
$Y->
|
At that point it works, but redeclaring all globals in all files is pretty tedious... Would it be possible for PhpEd to check all declarations on $Y throughout the project and if they all resolve to the same Type (which is almost always the case), use that Type? That would be so incredibly useful.
Thanks
![Smile](images/smiles/icon_smile.gif)