關(guān)于PHP多商戶版開發(fā)者工具PHPSTORM無(wú)法識(shí)別方法(跳轉(zhuǎn)聲明問題)
舉例:
app/common/repositories/system/CountRepository.php
1530行
getMerchantProductSalesPriceTop方法中
當(dāng)StoreOrderProductRepository中不存在getProductRate方法時(shí)(getProductRate方法實(shí)際是存在于app/common/dao/store/order/StoreOrderProductDao.php中),由于這種容器的調(diào)用方式,我的編輯器無(wú)法跳轉(zhuǎn)聲明,
需要加上聲明,才能正常跳轉(zhuǎn)聲明
/** @var StoreOrderProductRepository $storeOrderProductRepository */
請(qǐng)問有什么辦法能夠解決這個(gè)問題,是需要安裝什么插件還是我的開發(fā)者工具的問題?已經(jīng)更換兩個(gè)版本的phpstorm工具,均無(wú)法正常使用。