From 3e9d5a5aff1068d2be47c9350ec11c8a661f0d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Dec 2020 14:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Jwt/Jwt.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/System/Jwt/Jwt.php b/System/Jwt/Jwt.php index d31bc2e3..f2293709 100644 --- a/System/Jwt/Jwt.php +++ b/System/Jwt/Jwt.php @@ -5,7 +5,7 @@ namespace Snowflake\Jwt; use Exception; use HttpServer\Http\HttpHeaders; -use Redis; +use Snowflake\Cache\Redis; use Snowflake\Abstracts\Config; use Snowflake\Core\Str; use Snowflake\Exception\AuthException; @@ -453,10 +453,10 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY= } /** - * @return Redis - * @throws Exception + * @return Redis|\Redis + * @throws ComponentException */ - private function getRedis(): Redis + private function getRedis(): Redis|\Redis { return Snowflake::app()->getRedis(); }