I'm developing a third-party module that sits within a wider web service. Many of the classes and variables used (in PHP) are provided by the service. I've noticed I can declare a PHP DocBlock at the top of the page listing the variables passed in, and PHPStorm then treats them as existing.
Is there a way to do this for classes?
The classes sit within a namespace that doesn't exist in my project. For example:
Now I try to access className::methodName() and PHPStorm highlights it as a missing class. Unfortunately one of these methods comes up so much that the part on the right by the scroll bar is almost solidly yellow, which makes it useless for finding other issues.
Is there a way to tell PHPStorm that this class will exist at runtime, and not to worry about it? (preferably while still being informed about issues with other classes, etc).