analyse/types/throws-not-covariant
In the analyse-basic preset and every stricter one. Report only. Upstream gates: exceptions.check.throwTypeCovariance.
Configuration
[analyse.rules]
"types/throws-not-covariant" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
MethodThrowTypeCovarianceRule(phpstan-classes)IncompatibleThrowType(mago-analyzer)throws.notCovariant(phpstan)throws.notCovariantWithImplicitVoid(phpstan)throws.shouldBeVoid(phpstan)