method incorrectly reported as not found when instance type hinted on multiple classes

when an instance variable in type hinted on multiple classes, its method call is reported as "method not found";
For example, CLASS_A->do_something()  exists,
/** @var CLASS_A|CLASS_B|CLASS_C $var*/

PHPSTORM will report do_something() method cannot be found in class.

(version 130.1481)

Please sign in to leave a comment.