salient/phpstan
Composer 安装命令:
composer require salient/phpstan
包简介
The PHPStan component of the Salient toolkit
README 文档
README
The PHPStan component of the Salient toolkit
salient/phpstan provides PHPStan extensions for development with the Salient
toolkit.
Extensions
Dynamic return type
| Extension | Method |
|---|---|
ArrExtendReturnTypeExtension |
Arr::extend() |
ArrFlattenReturnTypeExtension |
Arr::flatten() |
ArrWhereNotEmptyReturnTypeExtension |
Arr::whereNotEmpty() |
ArrWhereNotNullReturnTypeExtension |
Arr::whereNotNull() |
GetCoalesceReturnTypeExtension |
Get::coalesce() |
StrCoalesceReturnTypeExtension |
Str::coalesce() |
Custom rule
| Extension | Description | Error identifiers |
|---|---|---|
ContainerRule |
Checks calls to ContainerInterface methods | salient.service.type |
GetCoalesceRule |
Checks for unnecessary use of Get::coalesce() | salient.needless.coalesce |
ImmutableTraitRule |
Checks calls to ImmutableTrait methods with() and without() |
salient.property.notFoundsalient.property.privatesalient.property.type |
Always-read and written properties
| Extension | Description |
|---|---|
ImmutableTraitReadWritePropertiesExtension |
Properties visible to ImmutableTrait methods are always read and written |
Documentation
API documentation for salient/phpstan tracks the main branch of
the toolkit's GitHub repository, where further documentation can also
be found.
统计信息
- 总下载量: 9.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-20