analyse/types/throw-non-throwable
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/throw-non-throwable" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ThrowExprTypeRule(phpstan-classes)InvalidThrow(mago-analyzer)throw.notThrowable(phpstan)