Skip to content

Commit

Permalink
Merge pull request #3 from BRACKETS-by-TRIAD/symfony-6-upgrade
Browse files Browse the repository at this point in the history
upgrade friendsofphp/php-cs-fixer to v3
  • Loading branch information
odziomkova-brackets authored Mar 10, 2022
2 parents 3071731 + 21243e8 commit 10ba1af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
->name('*.php')
->notName('*.blade.php');

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'blank_line_after_opening_tag' => true,
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
Expand All @@ -22,4 +22,4 @@
'phpdoc_align' => ['align' => 'left'],
'no_leading_import_slash' => true,
])
->setFinder($finder);
->setFinder($finder);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": {
"php": ">=7.0",
"symfony/console": "^3.2 || ^4.0 || ^5.0 || ^6.0",
"friendsofphp/php-cs-fixer": "^2.14",
"friendsofphp/php-cs-fixer": "^3",
"brainmaestro/composer-git-hooks": "^2.6",
"symfony/filesystem": "^3.2 || ^4.0 || ^5.0 || ^6.0"
},
Expand Down

0 comments on commit 10ba1af

Please sign in to comment.