instance hint of class name needs to be enhanced

if  php code uses "instanceof " on a variable, phpstorm needs to type hint the class name of the variable.

for example:
if ($a instance MY_CLASS) {
     $a->do_something();
}

Inside the if block, $a should be type hint as MY_CLASS

Please sign in to leave a comment.