0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

update to php-cs-fixer v3

This commit is contained in:
David Goodwin 2021-09-29 21:10:22 +01:00
parent 0d08ac418a
commit 49b408ec90
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,9 @@ $finder = PhpCsFixer\Finder::create()
->files()->notName('config.inc.php')->notName('config.local.php')
->in(__DIR__);
return PhpCsFixer\Config::create()
$config = new PhpCsFixer\Config();
return $config
->setFinder($finder)
->setRules(array(
'@PSR2' => true,

View File

@ -24,7 +24,7 @@
"require-dev": {
"ext-mysqli": "*",
"ext-sqlite3": "*",
"friendsofphp/php-cs-fixer": "^2.19",
"friendsofphp/php-cs-fixer": "^3.0",
"php-parallel-lint/php-parallel-lint": "^1.0",
"php": ">7.2.0",
"php-coveralls/php-coveralls": "*",