diff --git a/utils/PhpCsFixer/CodeIgniter4.php b/utils/PhpCsFixer/CodeIgniter4.php index 5bc69a3efc..bb2581647b 100644 --- a/utils/PhpCsFixer/CodeIgniter4.php +++ b/utils/PhpCsFixer/CodeIgniter4.php @@ -98,8 +98,12 @@ final class CodeIgniter4 extends AbstractRuleset 'indentation_type' => true, 'line_ending' => true, 'list_syntax' => ['syntax' => 'short'], + 'lowercase_cast' => true, + 'modernize_types_casting' => true, 'no_alias_functions' => ['sets' => ['@all']], + 'no_short_bool_cast' => true, 'no_trailing_comma_in_singleline_array' => true, + 'no_unset_cast' => true, 'no_whitespace_before_comma_in_array' => ['after_heredoc' => true], 'normalize_index_brace' => true, 'ordered_imports' => ['sort_algorithm' => 'alpha'], @@ -151,6 +155,8 @@ final class CodeIgniter4 extends AbstractRuleset 'null_adjustment' => 'always_last', 'sort_algorithm' => 'alpha', ], + 'set_type_to_cast' => true, + 'short_scalar_cast' => true, 'static_lambda' => true, 'ternary_to_null_coalescing' => true, 'trailing_comma_in_multiline' => [