I have class hierarchy in which there is an abstract class (AbstractObject) with a static method returning an API entry point URI for asking it for objects of concrete type (say Address). This static method is used to enforce setting entry point in concrete child classes. I also has a Service class that uses mentioned Address::class in its method to get an actual entry point that should be requested for the client. When Address::class is passed to a Service's method PhpStorm could not resolve this static method in the (in fact!) string. You can see the concept here . The code works well. But how to get rid of that annoying yellow wavy underline for getEntryPoint() method?