pepakriz/phpstan-exception-rules
PHPStan extension that adds custom rules for analyzing exceptions. It helps catch improper throwing/catching, missing @throws annotations, and other exception-related issues to improve correctness and maintainability in PHP codebases.
Add SimpleXMLElementExtension
Add DateIntervalExtension
Fixed multiple DOMDocument signature (https://github.com/pepakriz/phpstan-exception-rules/pull/128)
[@throws](https://github.com/throws) void (#123)Improvements:
Fixes:
Missing [@throws](https://github.com/throws) #107New features:
Unused [@throws](https://github.com/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](https://github.com/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:
Fixes:
Improvements:
Improvements:
PHPStan\DependencyInjection\Container instead of Nette Container. It should fix compatibility with shim version. (a8eaa1ee4628aa589f243248a4c191887183a163)New features:
[@throws](https://github.com/throws) void in annotation inheritance (702688c127a8b86e4f9c19feae25dc86f6135ec6)Fixes:
Improvements:
intdiv function (93aeda661111e5563271ca4d046745ffd7281791)Fixes:
New features:
reportCheckedThrowsInGlobalScope is enabled by default (c3be204a405c7273cd8eaaf7050199493185ad72)Fixes:
Improvements:
reportCheckedThrowsInGlobalScope. It'll be enabled by default in next major release, so if you want to use it now, you must enable it in config. See readme. (1314ff56d65d53e2ba77f43025819a2e82d97b3c)Improvements:
static::class in ReflectionExtension (53ebd083ab82a7b9c7e44bead34041a437b865cf)New features:
Fixes:
[@throws](https://github.com/throws) annotations on functions (7e8629bc2c953ccc883871a5e8fe645f38d0c559), thanks @marcospassosImprovements:
Improvements:
Fixes:
Fixes:
Improvements:
Fixes:
New features:
json_encode and json_decode functions (b1c7fa5260b150d9a233b5f97ab1a3f4b2969db0)Improvements:
New features:
Fixes:
How can I help you explore Laravel packages today?