From 985bf6dfe19f3ff82a8294b29dc41aa9e4eb40d5 Mon Sep 17 00:00:00 2001 From: Rancoud Date: Sun, 8 Dec 2024 14:31:09 +0100 Subject: [PATCH] chore: add rule get_class_to_class_keyword (#202) --- .php-cs-fixer.php | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index c367f15..ef51a15 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -20,6 +20,7 @@ 'spacing' => 'one' ], 'declare_strict_types' => true, + 'get_class_to_class_keyword' => false, 'global_namespace_import' => false, 'linebreak_after_opening_tag' => true, 'mb_str_functions' => true, @@ -28,21 +29,22 @@ '@all' ] ], - 'no_php4_constructor' => true, - 'no_superfluous_phpdoc_tags' => false, - 'no_unreachable_default_argument_value' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'ordered_imports' => true, - 'php_unit_strict' => true, - 'phpdoc_order' => true, - 'semicolon_after_instruction' => true, - 'single_import_per_statement' => false, - 'strict_comparison' => true, - 'strict_param' => true, - 'single_line_throw' => false, - 'trailing_comma_in_multiline' => false, - 'yoda_style' => [ + 'no_php4_constructor' => true, + 'no_superfluous_phpdoc_tags' => false, + 'no_unreachable_default_argument_value' => true, + 'no_useless_else' => true, + 'no_useless_return' => true, + 'nullable_type_declaration_for_default_null_value' => true, + 'ordered_imports' => true, + 'php_unit_strict' => true, + 'phpdoc_order' => true, + 'semicolon_after_instruction' => true, + 'single_import_per_statement' => false, + 'strict_comparison' => true, + 'strict_param' => true, + 'single_line_throw' => false, + 'trailing_comma_in_multiline' => false, + 'yoda_style' => [ 'equal' => false, 'identical' => false, 'less_and_greater' => false