Skip to content

Commit

Permalink
support for hyperf 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyzhu committed Jul 30, 2021
1 parent d2b391b commit bf88f31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 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 @@ -8,15 +8,15 @@
@license https://github.com/hyperf-ext/auth/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
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
"require": {
"php": ">=7.3",
"ext-swoole": ">=4.5",
"hyperf-ext/hashing": "~2.1.0",
"hyperf/command": "~2.1.0",
"hyperf/config": "~2.1.0",
"hyperf/database": "~2.1.0",
"hyperf/db-connection": "~2.1.0",
"hyperf/di": "~2.1.0",
"hyperf/framework": "~2.1.0"
"hyperf-ext/hashing": "~2.2.0",
"hyperf/command": "~2.2.0",
"hyperf/config": "~2.2.0",
"hyperf/database": "~2.2.0",
"hyperf/db-connection": "~2.2.0",
"hyperf/di": "~2.2.0",
"hyperf/framework": "~2.2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"hyperf/testing": "~2.1.0",
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/testing": "~2.2.0",
"phpstan/phpstan": "^0.12",
"swoole/ide-helper": "dev-master",
"mockery/mockery": "^1.0"
Expand All @@ -55,7 +55,7 @@
"sort-packages": true
},
"scripts": {
"test": "co-phpunit -c phpunit.xml --colors=always",
"test": "co-phpunit --prepend tests/bootstrap.php -c phpunit.xml --colors=always",
"analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1"
},
Expand Down

0 comments on commit bf88f31

Please sign in to comment.