@@ -13,17 +13,31 @@ $finder = PhpCsFixer\Finder::create()
13
13
->in (__DIR__ )
14
14
;
15
15
16
+ $ rules = [
17
+ '@PHP56Migration ' => true ,
18
+ '@PHP56Migration:risky ' => true ,
19
+ '@PHP71Migration ' => true ,
20
+ '@PHP71Migration:risky ' => true ,
21
+ ];
22
+
23
+ if (\PHP_VERSION_ID >= 70300 ) {
24
+ $ rules = array_merge ($ rules , [
25
+ '@PHP73Migration ' => true ,
26
+ ]);
27
+ }
28
+ if (\PHP_VERSION_ID >= 70400 ) {
29
+ $ rules = array_merge ($ rules , [
30
+ '@PHP74Migration ' => true ,
31
+ '@PHP74Migration:risky ' => true ,
32
+ ]);
33
+ }
34
+
16
35
return PhpCsFixer \Config::create ()
17
36
->setRiskyAllowed (true )
18
37
->setRules ([
19
38
'@Symfony ' => true ,
20
39
'@Symfony:risky ' => true ,
21
40
'@DoctrineAnnotation ' => true ,
22
- '@PHP56Migration ' => true ,
23
- '@PHP56Migration:risky ' => true ,
24
- '@PHP71Migration ' => true ,
25
- '@PHP71Migration:risky ' => true ,
26
- '@PHP73Migration ' => true ,
27
41
'array_syntax ' => ['syntax ' => 'short ' ],
28
42
'fopen_flags ' => true ,
29
43
'header_comment ' => ['header ' => $ fileHeaderComment , 'separate ' => 'both ' ],
0 commit comments