Skip to content

Commit 3ccd3fd

Browse files
committed
Upgrade the version of php-cs-fixer to ^3.0
1 parent e0b8670 commit 3ccd3fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.php_cs renamed to .php-cs-fixer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
@license https://github.com/hyperf/nano/blob/master/LICENSE
1010
EOF;
1111

12-
return PhpCsFixer\Config::create()
12+
return (new PhpCsFixer\Config())
1313
->setRiskyAllowed(true)
1414
->setRules([
1515
'@PSR2' => true,
1616
'@Symfony' => true,
1717
'@DoctrineAnnotation' => true,
1818
'@PhpCsFixer' => true,
1919
'header_comment' => [
20-
'commentType' => 'PHPDoc',
20+
'comment_type' => 'PHPDoc',
2121
'header' => $header,
2222
'separate' => 'none',
2323
'location' => 'after_declare_strict',

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"hyperf/utils": "^2.0.0"
3030
},
3131
"require-dev": {
32-
"friendsofphp/php-cs-fixer": "^2.14",
32+
"friendsofphp/php-cs-fixer": "^3.0",
3333
"hyperf/crontab": "^2.0.0",
3434
"hyperf/db": "^2.0.0",
3535
"hyperf/guzzle": "^2.0.0",

0 commit comments

Comments
 (0)