@@ -41,25 +41,25 @@ class CsFixerConfig extends Config implements CsFixerConfigInterface
4141 */
4242 protected static $ typo3Rules = [
4343 '@DoctrineAnnotation ' => true ,
44- // @todo: Switch to @PER-CS2.0 once php-cs-fixer's todo list is done: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7247
45- '@PER-CS1.0 ' => true ,
44+ // @todo: Switch to @PER-CS2x0 once php-cs-fixer's todo list is done: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7247
45+ '@PER-CS1x0 ' => true ,
4646 'array_indentation ' => true ,
4747 'array_syntax ' => ['syntax ' => 'short ' ],
4848 'cast_spaces ' => ['space ' => 'none ' ],
49- // @todo: Can be dropped once we enable @PER-CS2.0
49+ // @todo: Can be dropped once we enable @PER-CS2x0
5050 'concat_space ' => ['spacing ' => 'one ' ],
5151 'declare_equal_normalize ' => ['space ' => 'none ' ],
5252 'declare_parentheses ' => true ,
5353 'dir_constant ' => true ,
54- // @todo: Can be dropped once we enable @PER-CS2.0
54+ // @todo: Can be dropped once we enable @PER-CS2x0
5555 'function_declaration ' => [
5656 'closure_fn_spacing ' => 'none ' ,
5757 ],
5858 'function_to_constant ' => ['functions ' => ['get_called_class ' , 'get_class ' , 'get_class_this ' , 'php_sapi_name ' , 'phpversion ' , 'pi ' ]],
5959 'type_declaration_spaces ' => true ,
6060 'global_namespace_import ' => ['import_classes ' => false , 'import_constants ' => false , 'import_functions ' => false ],
6161 'list_syntax ' => ['syntax ' => 'short ' ],
62- // @todo: Can be dropped once we enable @PER-CS2.0
62+ // @todo: Can be dropped once we enable @PER-CS2x0
6363 'method_argument_space ' => true ,
6464 'modernize_strpos ' => true ,
6565 'modernize_types_casting ' => true ,
@@ -112,11 +112,12 @@ class CsFixerConfig extends Config implements CsFixerConfigInterface
112112 'phpdoc_trim ' => true ,
113113 'phpdoc_types ' => true ,
114114 'phpdoc_types_order ' => ['null_adjustment ' => 'always_last ' , 'sort_algorithm ' => 'none ' ],
115+ 'protected_to_private ' => true ,
115116 'return_type_declaration ' => ['space_before ' => 'none ' ],
116117 'single_quote ' => true ,
117118 'single_space_around_construct ' => true ,
118119 'single_line_comment_style ' => ['comment_types ' => ['hash ' ]],
119- // @todo: Can be dropped once we enable @PER-CS2.0
120+ // @todo: Can be dropped once we enable @PER-CS2x0
120121 'single_line_empty_body ' => true ,
121122 'trailing_comma_in_multiline ' => ['elements ' => ['arrays ' ]],
122123 'whitespace_after_comma_in_array ' => ['ensure_single_space ' => true ],
0 commit comments