Skip to content

Commit f71d06e

Browse files
committed
feat: add config for PHP 8.2
1 parent 4abfb0b commit f71d06e

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

config/php82/phpcsfixer.rules.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
rules:
3+
single_line_empty_body: true

src/Config/Php82.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace drupol\PhpCsFixerConfigsPhp\Config;
6+
7+
final class Php82 extends YamlConfig
8+
{
9+
public function __construct()
10+
{
11+
parent::__construct('drupol/phpcsfixer-configs-php/php73');
12+
13+
$parent = (new Php82())->withRulesFromYaml((new Php73)->getRules());
14+
15+
$this
16+
->setRules(
17+
$this->withRulesFromConfig($parent)->getRules()
18+
);
19+
20+
$this
21+
->setFinder($parent->getFinder());
22+
}
23+
}

0 commit comments

Comments
 (0)