From 8637d022d41eb03c6d3d60e5d5ba8bbe4556e452 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 20 Apr 2021 00:44:18 +0800 Subject: [PATCH] modify --- HttpServer/Route/Dispatch/Dispatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Route/Dispatch/Dispatch.php b/HttpServer/Route/Dispatch/Dispatch.php index f4302545..528c8354 100644 --- a/HttpServer/Route/Dispatch/Dispatch.php +++ b/HttpServer/Route/Dispatch/Dispatch.php @@ -32,7 +32,7 @@ class Dispatch * @throws NotFindClassException * @throws ReflectionException */ - public static function create($handler,...$request): static + public static function create($handler, $request): static { $class = new static(); $class->handler = $handler; @@ -52,7 +52,7 @@ class Dispatch */ public function dispatch(): mixed { - return call_user_func($this->handler, ...$this->request); +// return call_user_func($this->handler, $this->request); return \aop($this->handler, ...$this->request); }