Skip to content

Releases: shipmonk-rnd/phpstan-rules

2.11.0

19 Dec 11:38
103bad2
Compare
Choose a tag to compare

New features:

2.10.2

12 Dec 15:50
d5ec924
Compare
Choose a tag to compare

Fixes:

  • forbidUnusedMatchResult: fix void false positive in latest PHPStan (>= 1.10.49) (#189)

2.10.1

06 Dec 14:41
0c102ce
Compare
Choose a tag to compare

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])

2.10.0

29 Nov 12:52
101c85d
Compare
Choose a tag to compare

New features

2.9.2

04 Oct 13:49
dd0c725
Compare
Choose a tag to compare

Fixes

  • forbidUnusedMatchResult: fix false positive with assign operators, += etc (#171)

2.9.1

26 Sep 14:01
a566cfd
Compare
Choose a tag to compare

Fixes

  • ImmediatelyCalledCallableThrowTypeExtension: ignore implicit throw points #163

2.9.0

15 Sep 13:09
a47f65f
Compare
Choose a tag to compare

New features

Fixes

2.8.0

07 Sep 12:43
c588201
Compare
Choose a tag to compare

New features

2.7.0

30 Aug 14:23
c6f845a
Compare
Choose a tag to compare

New features

  • forbidCheckedExceptionInCallableRule: exception tracking elevated to next level (#137) !
    • disallows throwing checked exceptions in Closures and First class callables as those just return callback which can be called any time (thus cannot be tracked by phpstan)
    • allows configuration of functions/methods where some callable argument is immediatelly called, then any checked exception in such callable is property tracked!
      • this is a must if you use something like EntityManager::transactional

Dependencies

  • phpstan/phpstan now requires at least 1.10.30 (was 1.10.0, see #137)

2.6.3

10 Aug 12:52
122df5f
Compare
Choose a tag to compare

Fixes