|
14 | 14 | ->in(__DIR__); |
15 | 15 |
|
16 | 16 | $config = new PhpCsFixer\Config(); |
17 | | -$config |
| 17 | +$config->setRiskyAllowed(true) |
18 | 18 | ->setRules([ |
19 | 19 | '@Symfony' => true, |
20 | 20 | 'array_syntax' => ['syntax' => 'short'], |
21 | 21 | 'class_definition' => false, |
22 | 22 | 'concat_space' => ['spacing' => 'one'], |
23 | 23 | 'function_declaration' => ['closure_function_spacing' => 'none'], |
24 | 24 | 'header_comment' => ['header' => $header], |
| 25 | + 'native_constant_invocation' => true, |
| 26 | + 'native_function_casing' => true, |
| 27 | + 'native_function_invocation' => ['include' => ['@internal']], |
| 28 | + 'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false], |
| 29 | + 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true], |
25 | 30 | 'ordered_imports' => true, |
26 | 31 | 'phpdoc_align' => ['align' => 'left'], |
27 | 32 | 'phpdoc_types_order' => false, |
| 33 | + 'single_line_throw' => false, |
| 34 | + 'single_line_comment_spacing' => false, |
| 35 | + 'phpdoc_to_comment' => [ |
| 36 | + 'ignored_tags' => ['todo', 'var', 'see'], |
| 37 | + ], |
| 38 | + 'get_class_to_class_keyword' => false, // should be enabled as soon as support for php < 8 is dropped |
| 39 | + 'nullable_type_declaration_for_default_null_value' => true, |
| 40 | + 'no_null_property_initialization' => false, |
| 41 | + 'fully_qualified_strict_types' => false, |
| 42 | + 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays', 'match']], |
28 | 43 | ]) |
29 | 44 | ->setFinder($finder); |
30 | 45 |
|
|
0 commit comments