salient / phpstan
The PHPStan component of the Salient toolkit
Installs: 5 975
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/salient/phpstan
Requires
- php: >=7.4
 - phpstan/phpstan: ^2
 - salient/utils: v0.99.80
 
- dev-main
 - v0.99.80
 - v0.99.79
 - v0.99.78
 - 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-10-05 08:57:59 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.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.