|
11 | 11 | * @see https://github.com/guanguans/soar-php |
12 | 12 | */ |
13 | 13 |
|
| 14 | +use AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer; |
14 | 15 | use Ergebnis\License\Holder; |
15 | 16 | use Ergebnis\License\Range; |
16 | 17 | use Ergebnis\License\Type\MIT; |
|
39 | 40 | __DIR__.'/LICENSE', |
40 | 41 | Range::since( |
41 | 42 | Year::fromString('2019'), |
42 | | - new DateTimeZone('Asia/Shanghai'), |
| 43 | + new \DateTimeZone('Asia/Shanghai'), |
43 | 44 | ), |
44 | 45 | Holder:: fromString( 'guanguans<[email protected]>'), |
45 | 46 | Url::fromString('https://github.com/guanguans/soar-php'), |
|
50 | 51 | return $mit->header(); |
51 | 52 | })() |
52 | 53 | ) |
| 54 | + ->withCustomFixers(Fixers::fromFixers(new ForceFQCNFixer)) |
53 | 55 | ->withCustomFixers(Fixers::fromFixers(...$phpCsFixerCustomFixers = array_filter( |
54 | | - iterator_to_array(new PhpCsFixerCustomFixers\Fixers), |
| 56 | + iterator_to_array(new \PhpCsFixerCustomFixers\Fixers), |
55 | 57 | static fn (AbstractFixer $fixer): bool => !$fixer instanceof DeprecatedFixerInterface |
56 | 58 | && !\array_key_exists($fixer->getName(), Php81::create()->rules()->toArray()) |
57 | 59 | ))) |
|
83 | 85 | '@PHPUnit10x0Migration:risky' => true, |
84 | 86 | ])) |
85 | 87 | ->withRules(Rules::fromArray([ |
| 88 | + 'AdamWojs/phpdoc_force_fqcn_fixer' => true, |
86 | 89 | 'align_multiline_comment' => [ |
87 | 90 | 'comment_type' => 'phpdocs_only', |
88 | 91 | ], |
|
126 | 129 | 'concat_space' => [ |
127 | 130 | 'spacing' => 'none', |
128 | 131 | ], |
129 | | - // 'empty_loop_condition' => [ |
130 | | - // 'style' => 'for', |
131 | | - // ], |
| 132 | + 'empty_loop_condition' => [ |
| 133 | + 'style' => 'for', |
| 134 | + ], |
132 | 135 | 'explicit_string_variable' => false, |
133 | 136 | 'final_class' => false, |
134 | 137 | // 'final_internal_class' => false, |
135 | 138 | // 'final_public_method_for_abstract_class' => false, |
136 | 139 | 'fully_qualified_strict_types' => [ |
137 | 140 | 'import_symbols' => false, |
138 | | - 'leading_backslash_in_global_namespace' => false, |
| 141 | + 'leading_backslash_in_global_namespace' => true, |
139 | 142 | 'phpdoc_tags' => [ |
140 | 143 | // 'param', |
141 | 144 | // 'phpstan-param', |
|
0 commit comments