Idea understand the type through the comments:
/**
* @return My_Type
*/
function myFunction() {
return my_Type();
}
/**
*
* @var My_Type $_myProperty
*/
private $_myProperty;
/**
* @var ClassName[] $myVar
*/
Be sure that you have added the type in your php comments