Releases: shipmonk-rnd/phpstan-rules
Releases · shipmonk-rnd/phpstan-rules
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)
- e.g.
4.0.0
3.2.1
3.2.0
3.1.0
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 nowtrue
by default
Improvements
- All rules accepting classnames in its config checks class existence
Dependencies
phpstan/phpstan
now requires at least1.11.0
(was1.10.51
)1.11.0
comes with error identifiers (which we support since 2.10.0)