I have got a warning in PhpStorm for a common use of static calls. I have:
class Test {
public static function thisIsATest(){
// do stuff
}
}
Then, I have:
$className = 'Test';
$className::thisIsATest();
This is not an error, btw I have this in my PhpStorm:

Is there a way to handle this? At least, is it possible to just hide this warning?
call_user_func(array('Test','thisIsATest'));/** @noinspection PhpUndefinedMethodInspection */on a line just before$className::thisIsATest();3) Give a hand to IDE by providing better type hint for$classNamevariable -- the one that IDE understands:/** @var Test $className */before$className = 'Test';line/** @var ...is an option, but that bothers me because it's not its really type.call_user_funcfunctions (as far as i know). I'm going to downgrade the severity of this warning for now. Thank's!