Object/Class comprehension in PHPStorm

Hi there,

If I have a class that I'm calling ::class upon and then later instantiating that class with new $class() or with reflection, how do I make sure PHPStorm knows the corresponding class for the object I'm working with?  At the moment I might as well be instantiating from \stdClass().

Thanks!
 

0
Hello,

Could you share a code sample in which the issue is reproduced?
0

请先登录再写评论。