CS Fixer: Don't use the deprecated create method

This commit is contained in:
Alexander M. Turek
2021-03-20 15:06:46 +01:00
parent 21d3c0433f
commit 6e7870c724
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
])
->setFinder($finder)
;

View File

@@ -0,0 +1,10 @@
{
"aliases": ["cs-fixer", "php-cs-fixer"],
"copy-from-recipe": {
".php_cs.dist": ".php_cs.dist"
},
"gitignore": [
"/.php_cs",
"/.php_cs.cache"
]
}