Skip to content

Releases: pepakriz/phpstan-exception-rules

v0.3.2

01 Oct 19:38
9902bd7
Compare
Choose a tag to compare

Improvements:

  • ThrowsPhpDocInheritanceRule respects methodThrowTypeDeclarations (9902bd7)

v0.3.1

12 Aug 18:56
Compare
Choose a tag to compare

Improvements:

v0.3.0

25 Jul 07:50
d59528f
Compare
Choose a tag to compare

Improvements:

  • Better union calls support (b98f8da, a356c51)
  • Throws propagation over Traversable interface in foreach (ba7cb04)
  • Throws propagation over Countable interface (4b46a09)
  • Throws propagation over iterator_count, iterator_to_array and iterator_apply functions (45d39d4)
  • Throws propagation over JsonSerializable interface (246ebe7)
  • Better LSP support (afdd0cb, 8106608, abeda2d, fe4900b)

New features:

  • Dynamic Throw Types (1ec3235, 6c213d2, 3b12622)
  • Configuration option for overriding @throws definitions (c703a9b)
  • New rules for detection of unsupported or risky constructs (01cde8c)
  • Configuration option reportUnusedCatchesOfUncheckedExceptions which warn you about unused catch statement of unchecked exception (15d7db5)

BC Breaks:

  • Configuration option ignoredExceptions has been replaced by uncheckedExceptions (461c803, 15d7db5)

v0.2.0

28 Jun 07:56
Compare
Choose a tag to compare

Unreachable catch statements detection:

  • exception has been caught in some previous catch statement
  • checked exception is never thrown in the corresponding try block

v0.1.1

25 Jun 10:40
abc85f0
Compare
Choose a tag to compare
Fixed filtering unannotated exceptions (closes #6) (#7)

v0.1.0

25 Jun 07:06
Compare
Choose a tag to compare

Initial release