It seems more like a bug than a feature request...
phpEd fails to find type of inherited static variable inside the child method... :-/
<?php
class someClass
{
function someMethod()
{
}
}
class myClass
{
/**
* @var someClass
*/
static $someVar;
}
class myDerived extends myClass
{
static function otherMethod()
{
echo myClass::$someVar->someMethod();
// Code completion works perfectly here
echo self::$someVar->|
// Failed to idenfity type of "myDerived->someVar" property
}
}
myClass::$someVar->someMethod();
myDerived::$someVar->someMethod();
// Funny, but works here either!
?> |
Strange thing is that if I remove (or comment) the "echo self::$someVar->" line, code completion actually finds myDerived::$someVar methods if called from outside the class...