Skip to content

Commit 940208b

Browse files
committed
[PHP-CS-Fixer] Remove PHP73Migration and PHP74Migration
1 parent aa210d3 commit 940208b

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.php_cs.dist

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,16 @@ $finder = PhpCsFixer\Finder::create()
1313
->in(__DIR__)
1414
;
1515

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-
3516
return PhpCsFixer\Config::create()
3617
->setRiskyAllowed(true)
3718
->setRules([
3819
'@Symfony' => true,
3920
'@Symfony:risky' => true,
4021
'@DoctrineAnnotation' => true,
22+
'@PHP56Migration' => true,
23+
'@PHP56Migration:risky' => true,
24+
'@PHP71Migration' => true,
25+
'@PHP71Migration:risky' => true,
4126
'array_syntax' => ['syntax' => 'short'],
4227
'fopen_flags' => true,
4328
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'],

0 commit comments

Comments
 (0)