|
4 | 4 | ->exclude('fixtures') |
5 | 5 | ->in(['src', 'tests']); |
6 | 6 |
|
7 | | -return PhpCsFixer\Config::create() |
| 7 | +return (new PhpCsFixer\Config()) |
8 | 8 | ->setRules([ |
9 | 9 | '@Symfony' => true, |
10 | 10 | '@PHP73Migration' => true, |
11 | | - 'array_syntax' => ['syntax' => 'short'], |
| 11 | + |
12 | 12 | 'combine_consecutive_issets' => true, |
13 | 13 | 'combine_consecutive_unsets' => true, |
14 | 14 | 'compact_nullable_typehint' => true, |
15 | 15 | 'linebreak_after_opening_tag' => true, |
16 | | - 'list_syntax' => ['syntax' => 'short'], |
17 | | - // 'mb_str_functions' => true, |
18 | | - 'native_function_invocation' => true, |
| 16 | + 'native_function_invocation' => ['scope' => 'all', 'include' => ['@all']], |
19 | 17 | 'native_constant_invocation' => true, |
20 | 18 | 'no_null_property_initialization' => true, |
21 | 19 | 'no_useless_else' => true, |
22 | 20 | 'no_useless_return' => true, |
23 | | - 'ordered_imports' => ['sortAlgorithm' => 'alpha'], |
| 21 | + 'ordered_imports' => ['sort_algorithm' => 'alpha'], |
24 | 22 | 'phpdoc_order' => true, |
25 | 23 | 'strict_comparison' => true, |
26 | 24 | 'combine_nested_dirname' => true, |
|
0 commit comments