From 0b2a575016c2d360cff2cacdadc59c6d35836429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Dec 2020 17:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Dispatch/Dispatch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Route/Dispatch/Dispatch.php b/HttpServer/Route/Dispatch/Dispatch.php index 25213747..be0fbc6d 100644 --- a/HttpServer/Route/Dispatch/Dispatch.php +++ b/HttpServer/Route/Dispatch/Dispatch.php @@ -19,16 +19,16 @@ class Dispatch { /** @var Closure|array */ - protected $handler; + protected array|Closure $handler; - protected Request $request; + protected Request|\Swoole\Http\Request $request; /** * @param $handler * @param $request * @return static */ - public static function create($handler, $request) + public static function create($handler, $request): static { $class = new static(); $class->handler = $handler;