Releases: shipmonk-rnd/phpstan-rules
Releases · shipmonk-rnd/phpstan-rules
4.1.4
Fixes:
forbidUnusedMatchResult
: fix false positive for usage in arrow function (#305, @maryo)
4.1.3
Fixes:
enforceReadonlyPublicProperty
: fix false positive with hooked properties (#303)
4.1.2
Fixes:
forbidUnusedException
: fix ->getException()::class
false positive (#299)
4.1.1
Fixes:
Dependencies
phpstan/phpstan
requires ^2.1.8
(#296)
4.1.0
New features:
- forbidCustomFunctions now detects even fist class callables, anonymous classes and array/string callables in arguments (#288)
- e.g.
new class extends DeniedParent {}
- e.g.
$this->deniedMethod(...)
- e.g.
array_map([$this, 'deniedMethod'], $a)
- e.g.
array_map('denied_function', $a)
4.0.0
Breaking changes:
- Dropped uselessPrivatePropertyNullability as it got implemented in native PHPStan (#283)
- Shrunk function list in forbidEnumInFunctionArguments as most of them are detected by native PHPStan (#278)
Dependencies
phpstan/phpstan
now requires 2.0.0
(#274)
3.2.1
Fixes:
- Fix reflection error on unknown symbols (#273)
Dependencies:
phpstan/phpstan
now requires 1.12.5
(was 1.11.0
) (#272)
3.2.0
New features:
- Ease enabling rules one-by-one (#260)
parameters:
shipmonkRules:
enableAllRules: false
allowComparingOnlyComparableTypes:
enabled: true
3.0.0
Breaking changes:
- forbidAssignmentNotMatchingVarDoc: removed as there is better native replacement when bleedingEdge is enabled (#238)
- allowNamedArgumentOnlyInAttributes: removed as it was highly opinionated and did not provide any extra strictness (#238)
- forbidCheckedExceptionInCallable: removed config
immediatelyCalledCallables
(we now respect native @param-immediately-invoked-callable
, see docs) (#240)
- forbidReturnValueInYieldingMethod: option
reportRegardlessOfReturnType
is now true
by default
Improvements
- All rules accepting classnames in its config checks class existence
Dependencies
phpstan/phpstan
now requires at least 1.11.0
(was 1.10.51
)
1.11.0
comes with error identifiers (which we support since 2.10.0)