lint/style/prefer-cast-over-settype
In the code-quality set. Unsafe fix: it can change behaviour.
What it does
Cast shall be used, not settype.
Configuration
[lint.rules]
"style/prefer-cast-over-settype" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
set_type_to_cast(php-cs-fixer, risky)