@@ -20,6 +20,8 @@ return PhpCsFixer\Config::create()
20
20
->setRiskyAllowed (true )
21
21
->setRules ([
22
22
'@DoctrineAnnotation ' => true ,
23
+ '@PHP71Migration ' => true ,
24
+ '@PHP71Migration:risky ' => true ,
23
25
'@PHPUnit60Migration:risky ' => true ,
24
26
'@Symfony ' => true ,
25
27
'@Symfony:risky ' => true ,
@@ -33,7 +35,7 @@ return PhpCsFixer\Config::create()
33
35
'braces ' => [
34
36
'allow_single_line_closure ' => true ,
35
37
],
36
- 'declare_strict_types ' => true ,
38
+ 'compact_nullable_typehint ' => true ,
37
39
'doctrine_annotation_array_assignment ' => [
38
40
'operator ' => '= ' ,
39
41
],
@@ -45,11 +47,6 @@ return PhpCsFixer\Config::create()
45
47
'header ' => $ header ,
46
48
'location ' => 'after_open ' ,
47
49
],
48
- 'native_function_invocation ' => [
49
- 'include ' => [
50
- '@compiler_optimized ' ,
51
- ],
52
- ],
53
50
'no_extra_blank_lines ' => [
54
51
'tokens ' => [
55
52
'break ' ,
@@ -74,11 +71,14 @@ return PhpCsFixer\Config::create()
74
71
],
75
72
'sortAlgorithm ' => 'alpha ' ,
76
73
],
74
+ 'php_unit_method_casing ' => [
75
+ 'case ' => 'camel_case ' ,
76
+ ],
77
77
'phpdoc_order ' => true ,
78
- // 'simplified_null_return ' => true,
78
+ ' phpdoc_trim_consecutive_blank_line_separation ' => true ,
79
79
'strict_comparison ' => true ,
80
80
'strict_param ' => true ,
81
- 'ternary_to_null_coalescing ' => true ,
81
+ 'void_return ' => false , // BC breaks; to be done in API Platform 3.0
82
82
])
83
83
->setFinder ($ finder )
84
84
;
0 commit comments