I would love to have some sort of memory for array members set before for code completion.
Sample:
<?php
$_SESSION['Cart'] = new MyCart();
// And now PhpEd completes my code for $_SESSION['Cart']
$_SESSION['Cart']->InsertItem(12345);
?> |
Now I would like PhpEd to remember that $_SESSION has a member named 'Cart' and know it's type. I would be happy to do this, too:
<?php
/**
* @var MyCart
*/
$_SESSION['Cart'] = new MyCart();
// And now PhpEd completes my code for $_SESSION['Cart']
$_SESSION['Cart']->InsertItem(12345);
?> |