analyse/types/catch-non-throwable
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/catch-non-throwable" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
CaughtExceptionExistenceRule(phpstan-classes)CatchTypeNotThrowable(mago-analyzer)InvalidCatchType(mago-analyzer)InvalidCatchTypeNotClassOrInterface(mago-analyzer)catch.notThrowable(phpstan)class.prefixed(phpstan)