analyse/types/invalid-void-cast
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/invalid-void-cast" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
VoidCastRule(phpstan-classes)cast.void(phpstan)cast.voidNotSupported(phpstan)