analyse/types/invalid-arrow-function-signature
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-arrow-function-signature" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
ExistingClassesInArrowFunctionTypehintsRule(phpstan-classes)parameter.unionTypeNotSupported(phpstan)return.neverTypeNotSupported(phpstan)return.unionTypeNotSupported(phpstan)