|
9 | 9 | @license https://github.com/hyperf/hyperf/blob/master/LICENSE |
10 | 10 | EOF; |
11 | 11 |
|
12 | | -return PhpCsFixer\Config::create() |
| 12 | +return (new PhpCsFixer\Config()) |
13 | 13 | ->setRiskyAllowed(true) |
14 | 14 | ->setRules([ |
15 | 15 | '@PSR2' => true, |
16 | 16 | '@Symfony' => true, |
17 | 17 | '@DoctrineAnnotation' => true, |
18 | 18 | '@PhpCsFixer' => true, |
19 | 19 | 'header_comment' => [ |
20 | | - 'commentType' => 'PHPDoc', |
| 20 | + 'comment_type' => 'PHPDoc', |
21 | 21 | 'header' => $header, |
22 | 22 | 'separate' => 'none', |
23 | 23 | 'location' => 'after_declare_strict', |
|
62 | 62 | 'multiline_whitespace_before_semicolons' => [ |
63 | 63 | 'strategy' => 'no_multi_line', |
64 | 64 | ], |
| 65 | + 'constant_case' => [ |
| 66 | + 'case' => 'lower', |
| 67 | + ], |
| 68 | + 'global_namespace_import' => [ |
| 69 | + 'import_classes' => true, |
| 70 | + 'import_constants' => true, |
| 71 | + 'import_functions' => true, |
| 72 | + ], |
| 73 | + 'phpdoc_to_comment' => false, |
65 | 74 | 'class_attributes_separation' => true, |
66 | 75 | 'combine_consecutive_unsets' => true, |
67 | 76 | 'declare_strict_types' => true, |
68 | 77 | 'linebreak_after_opening_tag' => true, |
69 | | - 'lowercase_constants' => true, |
70 | 78 | 'lowercase_static_reference' => true, |
71 | 79 | 'no_useless_else' => true, |
72 | 80 | 'no_unused_imports' => true, |
|
0 commit comments