analyse/types/dead-catch
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/dead-catch" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
CatchWithUnthrownExceptionRule(phpstan-classes)DeadCatch(mago-analyzer)DuplicateCaughtType(mago-analyzer)catch.alreadyCaught(phpstan)catch.neverThrown(phpstan)