diff --git a/.gitignore b/.gitignore index c48a0268a..dd4a46683 100644 --- a/.gitignore +++ b/.gitignore @@ -22,8 +22,8 @@ ###< ng serve ### ###> friendsofphp/php-cs-fixer ### -/.php_cs -/.php_cs.cache +/.php-cs-fixer.php +/.php-cs-fixer.cache ###< friendsofphp/php-cs-fixer ### # Symfony Logs diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php similarity index 51% rename from .php_cs.dist rename to .php-cs-fixer.dist.php index afe11185d..3788194ce 100644 --- a/.php_cs.dist +++ b/.php-cs-fixer.dist.php @@ -1,14 +1,13 @@ in(__DIR__) ->exclude('var') ; -return PhpCsFixer\Config::create() +return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'], ]) ->setFinder($finder) ; diff --git a/symfony.lock b/symfony.lock index 50419aa3e..be232be9d 100644 --- a/symfony.lock +++ b/symfony.lock @@ -255,15 +255,15 @@ "version": "0.5.0" }, "friendsofphp/php-cs-fixer": { - "version": "2.2", + "version": "3.45", "recipe": { "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "2.2", - "ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b" + "branch": "main", + "version": "3.0", + "ref": "be2103eb4a20942e28a6dd87736669b757132435" }, "files": [ - ".php_cs.dist" + ".php-cs-fixer.dist.php" ] }, "fzaninotto/faker": {