I have a method generating an array of SomeObject[].
/**
* @return SomeObject[]
*/
private function thatMethod()
{
...
return [$someObject, $someOtherObject, $yetAnotherObject]
}
Yet when I read the object via list
list($someObject, $someOtherObject, $yetAnotherObject) = $this->thatMethod();
I lose typehint for those objects. I have to typehint them explicitly via @var SomeObject $someObject. I rather not do it this way.
Is there a way to get typehints working when using list in PhpStorm9?