Skip to content

Commit

Permalink
Upgrade the version of php-cs-fixer to ^3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jul 20, 2021
1 parent e0b8670 commit 3ccd3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
@license https://github.com/hyperf/nano/blob/master/LICENSE
EOF;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'header_comment' => [
'commentType' => 'PHPDoc',
'comment_type' => 'PHPDoc',
'header' => $header,
'separate' => 'none',
'location' => 'after_declare_strict',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"hyperf/utils": "^2.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/crontab": "^2.0.0",
"hyperf/db": "^2.0.0",
"hyperf/guzzle": "^2.0.0",
Expand Down

0 comments on commit 3ccd3fd

Please sign in to comment.