This commit is contained in:
2021-09-18 10:38:38 +08:00
parent d0e9f834d4
commit 1f34eb6675
7 changed files with 125 additions and 78 deletions
+4 -4
View File
@@ -13,11 +13,11 @@ class HandlerManager
/**
* @param $path
* @param $method
* @param $handler
* @param string $path
* @param string $method
* @param \Http\Handler\Handler|Closure $handler
*/
public static function add($path, $method, $handler)
public static function add(string $path, string $method, \Http\Handler\Handler|Closure $handler)
{
if (!isset(static::$handlers[$path])) {
static::$handlers[$path] = [];