set_type_to_cast
Cast shall be used, not settype.
settype
Risky when the settype function is overridden or when used as the 2nd or 3rd expression in a for loop .
for
--- Original +++ New <?php -settype($foo, "integer"); -settype($bar, "string"); -settype($bar, "null"); +$foo = (int) $foo; +$bar = (string) $bar; +$bar = null;
The rule is part of the following rule sets:
@PhpCsFixer:risky
@Symfony:risky