salient / phpstan
The PHPStan component of the Salient toolkit
v0.99.77
2025-03-03 13:59 UTC
Requires
- php: >=7.4
- phpstan/phpstan: ^2
- salient/utils: v0.99.77
- dev-main
- v0.99.77
- v0.99.76
- v0.99.75
- v0.99.74
- v0.99.73
- v0.99.72
- v0.99.71
- v0.99.70
- v0.99.69
- v0.99.68
- v0.99.67
- v0.99.66
- v0.99.65
- v0.99.64
- v0.99.63
- v0.99.62
- v0.99.61
- v0.99.60
- v0.99.59
- v0.99.58
- v0.99.57
- v0.99.56
- v0.99.55
- v0.99.54
- v0.99.53
- v0.99.52
- v0.99.51
- v0.99.50
- v0.99.49
- v0.99.48
- v0.99.47
- v0.99.46
- v0.99.45
- v0.99.44
- v0.99.43
- v0.99.42
- v0.99.41
- v0.99.40
- v0.99.39
- v0.99.38
- v0.99.37
- v0.99.36
- v0.99.35
- v0.99.34
- v0.99.33
- v0.99.32
This package is auto-updated.
Last update: 2025-03-11 05:34:49 UTC
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.notFound salient.property.private salient.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.