This commit is contained in:
2020-12-15 17:31:34 +08:00
parent f30c41fa97
commit 0b2a575016
+3 -3
View File
@@ -19,16 +19,16 @@ class Dispatch
{ {
/** @var Closure|array */ /** @var Closure|array */
protected $handler; protected array|Closure $handler;
protected Request $request; protected Request|\Swoole\Http\Request $request;
/** /**
* @param $handler * @param $handler
* @param $request * @param $request
* @return static * @return static
*/ */
public static function create($handler, $request) public static function create($handler, $request): static
{ {
$class = new static(); $class = new static();
$class->handler = $handler; $class->handler = $handler;