Override PHP docblock/annotation of method without overloading (PhpStorm autocompletion)
问题 This is a question about the autocompletion behavior in PhpStorm (and possibly other IDEs) in conjunction with PHP docblocks. I have to groups of classes in my application. First there are individual classes for various products (CarProduct, FoodProduct etc.), all inheriting from BaseProduct, and the counterpart for individual contracts (CarContract, FoodContract etc.), all inheriting from BaseContract. <?php class BaseContract { /** @var BaseProduct */ private $product; /** * @return