Releases: shipmonk-rnd/phpstan-rules
Releases · shipmonk-rnd/phpstan-rules
3.2.0
26 Aug 07:25
Compare
Sorry, something went wrong.
No results found
New features:
Ease enabling rules one-by-one (#260 )
parameters :
shipmonkRules :
enableAllRules : false
allowComparingOnlyComparableTypes :
enabled : true
3.1.0
11 Jul 08:37
Compare
Sorry, something went wrong.
No results found
3.0.0
15 May 08:33
Compare
Sorry, something went wrong.
No results found
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 )
2.12.0
03 Apr 09:57
Compare
Sorry, something went wrong.
No results found
2.11.3
05 Mar 12:12
Compare
Sorry, something went wrong.
No results found
Fixes
Dependencies
remove nikic/php-parser
requirement (#222 )
it is bundled inside PHPStan's phar anyway
2.11.2
10 Jan 21:23
Compare
Sorry, something went wrong.
No results found
Fixes
Fix compatibility with PHPStan >=1.10.51 (#206 )
Dependencies
phpstan/phpstan
now requires at least 1.10.51 (was 1.10.30) (#206 )
2.11.1
22 Dec 11:54
Compare
Sorry, something went wrong.
No results found
Fixes:
forbidEnumInFunctionArguments:
allow array_unique($enums, SORT_REGULAR)
(#196 )
deny also natcasesort
(#197 )
2.11.0
19 Dec 11:38
Compare
Sorry, something went wrong.
No results found
2.10.2
12 Dec 15:50
Compare
Sorry, something went wrong.
No results found
Fixes:
forbidUnusedMatchResult: fix void false positive in latest PHPStan (>= 1.10.49 ) (#189 )
2.10.1
06 Dec 14:41
Compare
Sorry, something went wrong.
No results found
Fixes
allowComparingOnlyComparableTypes : allow safe tuple comparison (lists of equal size & item types) (#182 )
example: usort($items, fn ($a, $b) => [$a->updatedAt, $a->id] <=> [$b->updatedAt, $b->id])