| 
8 | 8 | 
 
  | 
9 | 9 | $config = new PhpCsFixer\Config();  | 
10 | 10 | return $config  | 
 | 11 | +    ->setRiskyAllowed(true)  | 
11 | 12 |     ->setRules([  | 
12 |  | -        '@PSR12' => true,  | 
13 |  | -        '@PSR12:risky' => true,  | 
 | 13 | +        '@PER' => true,  | 
 | 14 | +        '@PER:risky' => true,  | 
14 | 15 |         '@PhpCsFixer' => true,  | 
15 | 16 |         '@PhpCsFixer:risky' => true,  | 
16 | 17 | 
 
  | 
17 | 18 |         // Overrides for rules included in PhpCsFixer rule sets  | 
18 | 19 |         'concat_space' => ['spacing' => 'one'],  | 
 | 20 | +        'fully_qualified_strict_types' => ['phpdoc_tags' => []],  | 
19 | 21 |         'method_chaining_indentation' => false,  | 
20 | 22 |         'multiline_whitespace_before_semicolons' => false,  | 
21 | 23 |         'native_function_invocation' => ['include' => ['@all']],  | 
22 | 24 |         'no_superfluous_phpdoc_tags' => false,  | 
23 | 25 |         'no_unset_on_property' => false,  | 
24 | 26 |         'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],  | 
 | 27 | +        'ordered_types' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'alpha'],  | 
25 | 28 |         'php_unit_internal_class' => false,  | 
26 | 29 |         'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],  | 
27 | 30 |         'php_unit_test_class_requires_covers' => false,  | 
28 | 31 |         'phpdoc_align' => false,  | 
 | 32 | +        'phpdoc_order' => ['order' => ['param', 'throws', 'return']],  | 
29 | 33 |         'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],  | 
30 | 34 |         'single_line_comment_style' => false,  | 
31 |  | -        'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments']],  | 
 | 35 | +        'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'match', 'parameters']],  | 
32 | 36 |         'yoda_style' => false,  | 
33 |  | -        'php_unit_strict' => false,  | 
34 |  | -        'php_unit_test_annotation' => false,  | 
35 | 37 | 
 
  | 
36 | 38 |         // Additional rules  | 
37 |  | -        'return_assignment' => false,  | 
38 | 39 |         'date_time_immutable' => true,  | 
39 | 40 |         'declare_strict_types' => true,  | 
40 | 41 |         'global_namespace_import' => [  | 
41 | 42 |             'import_classes' => null,  | 
42 | 43 |             'import_constants' => true,  | 
43 | 44 |             'import_functions' => true,  | 
44 | 45 |         ],  | 
45 |  | -        'list_syntax' => ['syntax' => 'short'],  | 
46 | 46 |         'heredoc_indentation' => ['indentation' => 'same_as_start'],  | 
47 | 47 |         'mb_str_functions' => true,  | 
48 | 48 |         'native_constant_invocation' => true,  | 
49 | 49 |         'nullable_type_declaration_for_default_null_value' => true,  | 
50 | 50 |         'static_lambda' => true,  | 
51 | 51 |         'ternary_to_null_coalescing' => true,  | 
52 | 52 |         'use_arrow_functions' => true,  | 
53 |  | -   ])  | 
 | 53 | +    ])  | 
54 | 54 |     ->setRiskyAllowed(true)  | 
55 | 55 |     ->setFinder($finder)  | 
56 | 56 | ;  | 
0 commit comments