Releases: pepakriz/phpstan-exception-rules
Releases · pepakriz/phpstan-exception-rules
v0.9.0
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
Fixes:
- Fixed nette DI deprecations (db16cb7)
v0.8.1
Improvements:
- Dependency on
PHPStan\DependencyInjection\Container
instead of Nette Container. It should fix compatibility with shim version. (a8eaa1e)
v0.8.0
New features:
- Allow
@throws void
in annotation inheritance (702688c)
- Extension installer support (4180572)
Fixes:
- Compatibility with the latest phpstan (b502e74)
v0.7.2
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
Fixes:
- Improved compatibility with bleeding-edge phpstan rules (7608f8f)
v0.7.0
New features:
- Report useless throws annotations (b478b96)
reportCheckedThrowsInGlobalScope
is enabled by default (c3be204)