analyse/debug/assert-type
In the analyse-basic preset and every stricter one. Report only.
What it does
Reports each assertType(), assertNativeType(), assertSuperType() or assertVariableCertainty() call that does not hold. Ignore comments and baselines cannot suppress these diagnostics.
Configuration
[analyse.rules]
"debug/assert-type" = "on"
Ignore comments and baselines cannot suppress it.
Replaces
FileAssertRule(phpstan-classes)phpstan.nativeType(phpstan)phpstan.superType(phpstan)phpstan.type(phpstan)phpstan.unknownExpectation(phpstan)phpstan.variable(phpstan)