根据Shopware 6.4.13.0升级说明的说法,EntityRepositoryInterface
已经被废弃,应该由EntityRepository
代替。但是,在我的IDE中,EntityRepository
也被标记为不推荐使用,使用推荐的开发设置,所有这些都升级到最新版本:
psh
在开发设置中按照composer.json
加载和升级: "require": {
"shopware/platform": "6.4.x@dev || dev-trunk"
在我的PhpStorm IDE中注意到:
不推荐类'EntityRepository‘
class EntityRepository implements EntityRepositoryInterface \Shopware\Core\Framework\DataAbstractionLayer\EntityRepository
不推荐: 5.6.0名称空间:\Shopware\Core\Framework\DataAbstractionLayer\ 来源: development/vendor/shopware/platform/src/Core/Framework/DataAbstractionLayer/EntityRepository.php
如何处理不推荐的内容,以及使用什么来代替不推荐的EntityRepositoryInterface
?
如何知道IDE的弃用通知是否可以安全地被忽略?我认为可以忽略它,因为上面提到的版本号"5.6.0“与任何当前或即将发布的Shopware 6版本不匹配。
如何在IDE中关闭具有误导性的反对意见通知?
发布于 2022-07-09 14:51:24
https://stackoverflow.com/questions/72921494
复制相似问题