ghostwriter / psalm-plugin
为 Psalm 提供插件
0.2.0
2023-08-27 13:19 UTC
Requires
- php: >=8.1
Requires (Dev)
- ghostwriter/coding-standard: dev-main
- ghostwriter/psalm-plugin-tester: ^0.2 || ^0.3 || ^1.0
- psr/container: ^1.1 || ^2.0
- vimeo/psalm: ^5.0 || ^6.0
This package is auto-updated.
Last update: 2024-08-31 16:08:45 UTC
README
为 Psalm
提供一个 ALL-IN-ONE
插件
用法
composer require ghostwriter/psalm-plugin --dev
vendor/bin/psalm-plugin enable ghostwriter/psalm-plugin
vendor/bin/psalm
特性
-
PHP 标准建议
-
缓存
-
容器
- 解决
get
方法的返回类型。
- 解决
-
时钟
-
事件调度器
-
链接
-
日志
-
Http
-
-
PHPUnit
- 对继承自
TestCase
的类,抑制MissingThrowsDocblock
- 对继承自
TestCase
的类,抑制UnusedClass
- 对继承自
TestCase
的类,抑制PropertyNotSetInConstructor
- 使用
assertPreConditions
方法 - 使用
setUp
方法 - 使用
setUpBeforeClass
方法 - 使用
@before
注释 - 使用
@beforeClass
注释 - 使用
#[Before]
属性 - 使用
#[BeforeClass]
属性 - 使用
#[PreCondition]
属性
- 使用
- 对继承自
-
私有化
-
最终化所有没有子类的类
(!isAbstract && !isAnonymous) -
如果可能的话,最终化抽象类上的所有类方法
(!isAbstract && !isPrivate) -
如果可能的话,将受保护的类方法更改为私有
-
如果可能的话,将受保护的类属性更改为私有
-
-
严格类型
-
[请求功能]
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG.md
安全
如果您发现任何与安全相关的问题,请使用 安全通告
而不是使用问题跟踪器。
致谢
许可
The BSD-3-Clause. 更多信息请参阅 许可文件