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
请先登录再写评论。
reported as http://youtrack.jetbrains.com/issue/WI-19558