|
99 | 99 | 'explicit_string_variable' => true,
|
100 | 100 | 'fopen_flag_order' => true,
|
101 | 101 | 'full_opening_tag' => true,
|
102 |
| - 'fully_qualified_strict_types' => true, |
| 102 | + 'fully_qualified_strict_types' => ['import_symbols' => true], |
103 | 103 | 'function_declaration' => true,
|
104 | 104 | 'function_to_constant' => true,
|
105 | 105 | 'get_class_to_class_keyword' => true,
|
|
135 | 135 | 'modernize_types_casting' => true,
|
136 | 136 | 'multiline_comment_opening_closing' => true,
|
137 | 137 | 'multiline_whitespace_before_semicolons' => true,
|
138 |
| - 'native_constant_invocation' => false, |
| 138 | + 'native_constant_invocation' => true, |
139 | 139 | 'native_function_casing' => false,
|
140 | 140 | 'native_function_invocation' => [
|
141 | 141 | 'include' => [
|
|
158 | 158 | 'no_empty_comment' => true,
|
159 | 159 | 'no_empty_phpdoc' => true,
|
160 | 160 | 'no_empty_statement' => true,
|
161 |
| - 'no_extra_blank_lines' => true, |
| 161 | + 'no_extra_blank_lines' => [ |
| 162 | + 'tokens' => [ |
| 163 | + 'attribute', |
| 164 | + 'break', |
| 165 | + 'case', |
| 166 | + 'continue', |
| 167 | + 'curly_brace_block', |
| 168 | + 'default', |
| 169 | + 'extra', |
| 170 | + 'parenthesis_brace_block', |
| 171 | + 'return', |
| 172 | + 'square_brace_block', |
| 173 | + 'switch', |
| 174 | + 'throw', |
| 175 | + 'use', |
| 176 | + ], |
| 177 | + ], |
162 | 178 | 'no_homoglyph_names' => true,
|
163 | 179 | 'no_leading_import_slash' => true,
|
164 | 180 | 'no_leading_namespace_whitespace' => true,
|
|
197 | 213 | 'no_whitespace_in_blank_line' => true,
|
198 | 214 | 'non_printable_character' => true,
|
199 | 215 | 'normalize_index_brace' => true,
|
| 216 | + 'nullable_type_declaration_for_default_null_value' => true, |
200 | 217 | 'object_operator_without_whitespace' => true,
|
201 | 218 | 'octal_notation' => true,
|
202 | 219 | 'operator_linebreak' => [
|
|
340 | 357 | 'whitespace_after_comma_in_array' => true,
|
341 | 358 | ]);
|
342 | 359 |
|
| 360 | +$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . json_decode((string) @file_get_contents('composer.json'), true)["extra"]["branch-alias"]["dev-main"] ?? 'unknown'); |
| 361 | + |
| 362 | +$config->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()); |
| 363 | + |
343 | 364 | return $config;
|
0 commit comments