Skip to content

Releases: pepakriz/phpstan-exception-rules

v0.10.0

04 Dec 17:39
099d467
Compare
Choose a tag to compare

PHPStan 0.12 support

v0.9.0

18 Nov 17:57
Compare
Choose a tag to compare

New features:

  • Unused @throws reporting is disabled by default for subtypes without phpdoc.
    It can be enabled again by reportUnusedCheckedThrowsInSubtypes: true. What does it mean? You can remove all unnecessary @throws void phpdoc when you preserve the default value.
    #95, #97, thanks @marcospassos

  • Error reporting can be disabled as per class basis. It's useful for TestCase methods etc.
    #93, thanks @marcospassos

  • New rule DeadCatchUnion which reports redundant types in catch statement.
    #96

Improvements:

  • Improved annotation reader to traverse class hierarchy #94, thanks @marcospassos

v0.8.3

17 Aug 10:26
db16cb7
Compare
Choose a tag to compare

Fixes:

  • Fixed nette DI deprecations (db16cb7)

v0.8.2

25 May 06:59
Compare
Choose a tag to compare

Improvements:

v0.8.1

11 May 06:49
Compare
Choose a tag to compare

Improvements:

  • Dependency on PHPStan\DependencyInjection\Container instead of Nette Container. It should fix compatibility with shim version. (a8eaa1e)

v0.8.0

10 May 18:28
Compare
Choose a tag to compare

New features:

  • Allow @throws void in annotation inheritance (702688c)
  • Extension installer support (4180572)

Fixes:

  • Compatibility with the latest phpstan (b502e74)

v0.7.2

16 Apr 16:15
d15eba3
Compare
Choose a tag to compare

Improvements:

  • Added support for processing ArithmeticErrors with some native math operators (d15eba3)
  • Added support for intdiv function (93aeda6)
  • Internal: DI compiler extension is replaced by DynamicThrowTypeServiceFactory (5a90197)

v0.7.1

27 Mar 14:33
7608f8f
Compare
Choose a tag to compare

Fixes:

  • Improved compatibility with bleeding-edge phpstan rules (7608f8f)

v0.7.0

03 Mar 13:06
b478b96
Compare
Choose a tag to compare

New features:

  • Report useless throws annotations (b478b96)
  • reportCheckedThrowsInGlobalScope is enabled by default (c3be204)

v0.6.3

28 Feb 07:21
Compare
Choose a tag to compare

Fixes: