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

update php-cs-fixer (to support php 8.1)

This commit is contained in:
David Goodwin 2022-06-28 13:27:45 +01:00
parent b5e937ac1e
commit 3472897527
2 changed files with 3 additions and 3 deletions

View File

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

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-coveralls/php-coveralls" : "*",
"php": ">7.0",