PHPDoc @var support
| Project: | VS.Php for Visual Studio 2005 |
| Component: | Editor |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Intellisense seems to break on things like member variables.
eg:
class Test1 extends Test
{
/** @var bool Just differentiates Test1 from Test */
public $isTest1 = true;
}
class Test
{
/** @var Test1 A child Test object */
public $subTest;
/** @var int The number of levels deep this object is */
public $level;
public function setChildLevel()
{
$this->subTest->level = $this->level + 1;
}
}
In setChildLevel, typing $this->subTest-> doesn't result in any suggested completions (Or, randomly seems to suggest Test's properties/methods instead of Test1's)
It would be ideal if the @var comment were respected and used for Intellisense.


crashes the whole IDE
I attempted using a class listed for a private var,
and it crashes my system
for example:
<?phpclass blah
{
/** @var MYOWNCLASS aboutthisvar **/
private $moc = null;
public function
Stuff(){
$this->moc->//JUST FINISHED TYPING THIS, THEN WHOLE SYSTEM CRASHES (yes, MYOWNCLASS is defined and included)
}
}
?>
What version and edition of
What version and edition of VS.Php are you using?
Also, can you reproduce with the code you posted here?