From 4197b1613282e244482b573aa1ab966c22373d39 Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 29 Aug 2024 16:24:45 +0800 Subject: [PATCH] eee --- src/Base/Middleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base/Middleware.php b/src/Base/Middleware.php index 7fcf7db..60cf286 100644 --- a/src/Base/Middleware.php +++ b/src/Base/Middleware.php @@ -27,7 +27,7 @@ class Middleware public static function set(string $className, string $method, string $middleware): void { $path = $className . '::' . $method; - if (!isset(static::$manager[$path])) { + if (!isset(static::$mapping[$path])) { static::$mapping[$path] = []; } if (!in_array($middleware, static::$mapping[$path])) {