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
1 comment
Hello,

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

Please sign in to leave a comment.