You can type hint arrays like this:
/** @var Class[] $variable */
$variable = /*someArrayWithObjects*/;
But is it possible to type hint the array as itself and the objects of the Array differently? Something like:
/** @var Class, SomeOtherClass[] $variable */
$variable = /*someArrayWithObjects*/;
So that the array itself shows methods from Class and every Object of the array shows methods from SomeOtherClass?