diff --git a/src/Config.php b/src/Config.php index cc1de1f..fd419c6 100644 --- a/src/Config.php +++ b/src/Config.php @@ -30,7 +30,7 @@ public function getRules(): array 'class_reference_name_casing' => true, 'clean_namespace' => true, 'concat_space' => ['spacing' => 'one'], - 'curly_braces_position' => [ + 'braces_position' => [ 'allow_single_line_anonymous_functions' => true, 'allow_single_line_empty_anonymous_classes' => true, ], @@ -39,7 +39,7 @@ public function getRules(): array 'empty_loop_body' => ['style' => 'braces'], 'empty_loop_condition' => true, 'fully_qualified_strict_types' => true, - 'function_typehint_space' => true, + 'type_declaration_spaces' => true, 'general_phpdoc_tag_rename' => [ 'replacements' => [ 'inheritDocs' => 'inheritDoc', @@ -65,7 +65,7 @@ public function getRules(): array 'strategy' => 'new_line_for_chained_calls', ], 'native_function_casing' => true, - 'native_function_type_declaration_casing' => true, + 'native_type_declaration_casing' => true, 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, @@ -113,9 +113,7 @@ public function getRules(): array 'yield_from', ], ], - 'no_unneeded_curly_braces' => [ - 'namespaces' => true, - ], + 'no_unneeded_braces' => true, 'no_unneeded_import_alias' => true, 'no_unset_cast' => true, 'no_unused_imports' => true,