mirror of
https://github.com/elyby/php-code-style.git
synced 2025-05-31 14:12:05 +05:30
Migrate to PHP-CS-Fixer 3. Upgrade custom rules. Upgrade ruleset.
This commit is contained in:
12
.php-cs-fixer.dist.php
Normal file
12
.php-cs-fixer.dist.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__);
|
||||
|
||||
return Ely\CS\Config::create([
|
||||
// Disable "parameters" and "match" to keep compatibility with PHP 7.4
|
||||
'trailing_comma_in_multiline' => [
|
||||
'elements' => ['arrays', 'arguments'],
|
||||
],
|
||||
])->setFinder($finder);
|
||||
Reference in New Issue
Block a user