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!
请先登录再写评论。
Could you share a code sample in which the issue is reproduced?