|
14 | 14 | '@PhpCsFixer' => true, |
15 | 15 | '@PhpCsFixer:risky' => true, |
16 | 16 | // '@PSR2' => true, // cool, but add break lines on every fucntion with 1+ params |
17 | | - '@PHPUnit60Migration:risky' => true, |
18 | 17 | 'array_syntax' => ['syntax' => 'short'], |
| 18 | + 'comment_to_phpdoc' => [ |
| 19 | + 'ignored_tags' => [ |
| 20 | + // code coverage don't work with phpdoc, so we need to ignore these tags |
| 21 | + 'codeCoverageIgnoreStart', |
| 22 | + 'codeCoverageIgnoreEnd', |
| 23 | + ], |
| 24 | + ], |
19 | 25 | 'general_phpdoc_annotation_remove' => [ |
20 | 26 | 'annotations' => [ |
21 | 27 | 'expectedException', 'expectedExceptionMessage', 'expectedExceptionMessageRegExp' |
22 | 28 | ], |
23 | 29 | ], |
| 30 | + 'method_argument_space' => [ |
| 31 | + 'on_multiline' => 'ignore' |
| 32 | + ], |
24 | 33 | 'no_useless_return' => true, |
25 | 34 | 'simplified_null_return' => true, |
| 35 | + 'static_lambda' => false, |
| 36 | + 'string_implicit_backslashes' => true, |
| 37 | + 'trailing_comma_in_multiline' => [ |
| 38 | + 'elements' => ['arguments', 'arrays', 'parameters'] |
| 39 | + ], |
| 40 | + 'use_arrow_functions' => true, |
26 | 41 | 'backtick_to_shell_exec' => true, |
27 | 42 | 'multiline_comment_opening_closing' => true, |
28 | | - 'escape_implicit_backslashes' => true, |
29 | 43 | 'ternary_to_null_coalescing' => true, |
30 | 44 | 'concat_space' => ['spacing' => 'one'], |
31 | 45 | 'class_definition' => ['single_line' => true, 'single_item_single_line' => true], |
|
42 | 56 | 'psr_autoloading' => true, |
43 | 57 | 'phpdoc_order' => true, |
44 | 58 |
|
45 | | - /* PHP 7.0 */ |
46 | | - '@PHP70Migration' => true, |
47 | | - '@PHP70Migration:risky' => true, |
48 | | - '@PHP71Migration' => true, |
49 | | - '@PHP71Migration:risky' => true, |
50 | | - '@PHP73Migration' => true, |
51 | | - '@PHP74Migration' => true, |
52 | | - '@PHP74Migration:risky' => true, |
53 | | - '@PHP80Migration' => true, |
54 | | - '@PHP80Migration:risky' => true, |
55 | | - '@PHPUnit84Migration:risky' => true, |
56 | | - |
57 | 59 | 'phpdoc_to_return_type' => true, |
58 | 60 | 'native_function_invocation' => ['include' => []], // count -> \count (added like Symfony:risky) |
59 | 61 | 'native_constant_invocation' => false, // PHP_EOL -> \PHP_EOL (added like Symfony:risky) |
60 | 62 | 'single_line_throw' => false, |
61 | 63 | 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], |
62 | 64 | 'phpdoc_add_missing_param_annotation' => false, |
63 | | - 'use_arrow_functions' => false, |
64 | 65 |
|
65 | 66 | // disable fix php docs on single line like /** @var XXX $xxx */ |
66 | 67 | 'phpdoc_to_comment' => false, |
|
0 commit comments