diff --git a/src/think/route/Rule.php b/src/think/route/Rule.php index 883a5174795a39afbb89fb13fc5f362da22cef18..bb13c363e423b32fc468284bd8c4c9608dd80a58 100644 --- a/src/think/route/Rule.php +++ b/src/think/route/Rule.php @@ -457,10 +457,10 @@ abstract class Rule /** * 设置路由缓存 * @access public - * @param array|string $cache 缓存 + * @param array|int $cache 缓存 * @return $this */ - public function cache(array|string $cache) + public function cache(array|int $cache) { return $this->middleware(CheckRequestCache::class, $cache); }