diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 7143042a..8218f816 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -162,6 +162,9 @@ class Node extends HttpService */ private function aopHandler(?IAspect $reflect): Closure { + if (is_null($reflect)) { + return $this->normalHandler($this->handler); + } $params = $this->_injectParameters; $handler = $this->handler; return static function () use ($reflect, $handler, $params) {