定制 runtothefather/doctrine-psalm-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

runtothefather/doctrine-psalm-plugin

Composer 安装命令:

composer require --dev runtothefather/doctrine-psalm-plugin

包简介

Repository resolver to show psalm how to resolve getRepository method

README 文档

README

By default psalm doesn't recognize return type for cases like this

$object->getRepository(Entity::class)

where $object can be instance of

Doctrine\Common\Persistence\ObjectManager
Symfony\Bridge\Doctrine\RegistryInterface
Doctrine\Common\Persistence\AbstractManagerRegistry
Doctrine\Common\Persistence\ManagerRegistry

repository class from @ORM\Entity(repositoryClass="Doctrine\Common\Persistence\ObjectRepository") will be returned

Usage

Add into your psalm.xml file into <plugins> section line

<plugin filename="vendor/runtothefather/doctrine-psalm-plugin/src/ReturnTypeProvider/GetRepositoryReturnTypeProvider.php"></plugin>

统计信息

  • 总下载量: 6.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固