From 76adb5dc1597a8f9623e627fe8d63e80c18af082 Mon Sep 17 00:00:00 2001 From: wenbo Date: Sun, 15 Jan 2023 17:14:13 +0800 Subject: [PATCH] =?UTF-8?q?beta=20=E5=8D=87=E7=BA=A7=E8=87=B3hyperf=203.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 10 +++++----- src/Aspect/ResponseAspect.php | 4 ++-- src/Listener/QueryExecListener.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 4fb331b..18ebd51 100644 --- a/composer.json +++ b/composer.json @@ -31,11 +31,11 @@ "php": ">=8.0", "ext-json": "*", "guanguans/soar-php": "^2.0", - "hyperf/config": "^2.0", - "hyperf/database": "^2.0", - "hyperf/di": "^2.0", - "hyperf/event": "^2.0", - "hyperf/http-message": "^2.0" + "hyperf/config": "3.0.*", + "hyperf/database": "3.0.*", + "hyperf/di": "3.0.*", + "hyperf/event": "3.0.*", + "hyperf/http-message": "3.0.*" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.0", diff --git a/src/Aspect/ResponseAspect.php b/src/Aspect/ResponseAspect.php index 511f032..d41fd6b 100644 --- a/src/Aspect/ResponseAspect.php +++ b/src/Aspect/ResponseAspect.php @@ -15,6 +15,7 @@ namespace Wilbur\HyperfSoar\Aspect; +use Hyperf\Context\Context; use Hyperf\Contract\ConfigInterface; use Hyperf\Di\Annotation\Aspect; use Hyperf\Di\Annotation\Inject; @@ -22,7 +23,6 @@ use Hyperf\Di\Aop\ProceedingJoinPoint; use Hyperf\Engine\Channel; use Hyperf\HttpMessage\Stream\SwooleStream; -use Hyperf\Utils\Context; use Hyperf\Utils\Exception\ParallelExecutionException; use Hyperf\Utils\Parallel; use Hyperf\Utils\Str; @@ -42,7 +42,7 @@ #[Aspect] class ResponseAspect extends AbstractAspect { - public $classes = [ + public array $classes = [ 'Hyperf\HttpServer\Response::json', ]; diff --git a/src/Listener/QueryExecListener.php b/src/Listener/QueryExecListener.php index 5f2eb96..782cbac 100644 --- a/src/Listener/QueryExecListener.php +++ b/src/Listener/QueryExecListener.php @@ -15,12 +15,12 @@ namespace Wilbur\HyperfSoar\Listener; +use Hyperf\Context\Context; use Hyperf\Contract\ConfigInterface; use Hyperf\Database\Events\QueryExecuted; use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Utils\Arr; -use Hyperf\Utils\Context; use Hyperf\Utils\Str;