diff --git a/composer.json b/composer.json index d9d6295..852ed61 100644 --- a/composer.json +++ b/composer.json @@ -31,13 +31,13 @@ "require": { "php": ">=7.3", "ext-swoole": ">=4.5", - "hyperf/config": "2.2.*", - "hyperf/di": "2.2.*", - "hyperf/framework": "2.2.*" + "hyperf/config": "~2.2.0", + "hyperf/di": "~2.2.0", + "hyperf/framework": "~2.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.14", - "hyperf/testing": "2.2.*", + "friendsofphp/php-cs-fixer": "^3.0", + "hyperf/testing": "~2.2.0", "phpstan/phpstan": "^0.12", "swoole/ide-helper": "dev-master" }, @@ -45,7 +45,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" },