I have some methods that return a custom type (for instance, my `getImage()` method returns an `Image` type). When I assign that object to a variable (eg: `$image = $parent->getImage()`) the variable isn't aware of its type (ie, if I now type `$image->`, I don't get any autocomplete options).
Is there a way to tell PHPstorm the type that a function returns, so I can get the same autocorrect behaviour? Does PHPstorm read PHPdoc blocks? If so, do I need to re-parse the codebase somehow?
Loving PHPstorm, just came over from like ten years of notepad++, what have I been doing with my life?