Skip to content

Commit 999f99c

Browse files
committed
support for hyperf 2.2
1 parent 5b227c8 commit 999f99c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
@license https://github.com/hyperf-ext/captcha/blob/master/LICENSE
99
EOF;
1010

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

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
"ext-fileinfo": "*",
3030
"ext-imagick": "*",
3131
"ext-swoole": ">=4.5",
32-
"hyperf-ext/encryption": "~2.1.0",
33-
"hyperf/cache": "~2.1.0",
34-
"hyperf/di": "~2.1.0",
35-
"hyperf/framework": "~2.1.0",
36-
"hyperf/validation": "~2.1.0"
32+
"hyperf-ext/encryption": "~2.2.0",
33+
"hyperf/cache": "~2.2.0",
34+
"hyperf/di": "~2.2.0",
35+
"hyperf/framework": "~2.2.0",
36+
"hyperf/validation": "~2.2.0"
3737
},
3838
"require-dev": {
39-
"friendsofphp/php-cs-fixer": "^2.14",
40-
"hyperf/testing": "~2.1.0",
39+
"friendsofphp/php-cs-fixer": "^3.0",
40+
"hyperf/testing": "~2.2.0",
4141
"phpstan/phpstan": "^0.12",
4242
"swoole/ide-helper": "dev-master"
4343
},
4444
"config": {
4545
"sort-packages": true
4646
},
4747
"scripts": {
48-
"test": "co-phpunit -c phpunit.xml --colors=always",
48+
"test": "co-phpunit --prepend tests/bootstrap.php -c phpunit.xml --colors=always",
4949
"analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src",
5050
"cs-fix": "php-cs-fixer fix $1"
5151
},

0 commit comments

Comments
 (0)