Symfony 6.4 - Update friendsofphp/php-cs-fixer recipe

This commit is contained in:
Clemente Raposo 2024-01-03 16:17:29 +00:00
parent 9dc9bf508f
commit 5aa74514ca
3 changed files with 9 additions and 10 deletions

4
.gitignore vendored
View file

@ -22,8 +22,8 @@
###< ng serve ### ###< ng serve ###
###> friendsofphp/php-cs-fixer ### ###> friendsofphp/php-cs-fixer ###
/.php_cs /.php-cs-fixer.php
/.php_cs.cache /.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ### ###< friendsofphp/php-cs-fixer ###
# Symfony Logs # Symfony Logs

View file

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

View file

@ -255,15 +255,15 @@
"version": "0.5.0" "version": "0.5.0"
}, },
"friendsofphp/php-cs-fixer": { "friendsofphp/php-cs-fixer": {
"version": "2.2", "version": "3.45",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "master", "branch": "main",
"version": "2.2", "version": "3.0",
"ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b" "ref": "be2103eb4a20942e28a6dd87736669b757132435"
}, },
"files": [ "files": [
".php_cs.dist" ".php-cs-fixer.dist.php"
] ]
}, },
"fzaninotto/faker": { "fzaninotto/faker": {