From abb69cff20ca78ee6e1bf15379df2c415bdc4532 Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 29 Aug 2024 15:55:06 +0800 Subject: [PATCH] eee --- src/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Router.php b/src/Router.php index 74489da..7554efb 100644 --- a/src/Router.php +++ b/src/Router.php @@ -139,9 +139,9 @@ class Router /** * @param array|RequestMethod $methods * @param string $route - * @param string $handler + * @param string|array $handler */ - public static function addRoute(array|RequestMethod $methods, string $route, string $handler): void + public static function addRoute(array|RequestMethod $methods, string $route, string|array $handler): void { $router = Kiri::getDi()->get(DataGrip::class)->get(static::$type); if ($methods instanceof RequestMethod) {