From 2cdc8577701ff693d064990453dc79fe5957ba74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E5=B0=91=E6=B3=A2?= <756684177@qq.com> Date: Fri, 9 Dec 2022 15:22:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20RedisHandler::clearToken=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=AC=AC=E4=BA=8C=E4=B8=AA=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=9C=89=E8=AF=AF=20#7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/JwtToken.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JwtToken.php b/src/JwtToken.php index c7eaa8e..8abd998 100644 --- a/src/JwtToken.php +++ b/src/JwtToken.php @@ -21,6 +21,7 @@ use Tinywan\Jwt\Exception\JwtConfigException; use Tinywan\Jwt\Exception\JwtTokenExpiredException; use UnexpectedValueException; +use function _PHPStan_c0c409264\RingCentral\Psr7\str; class JwtToken { @@ -356,7 +357,7 @@ public static function clear(): bool { $config = self::_getConfig(); if ($config['is_single_device']) { - return RedisHandler::clearToken($config['cache_token_pre'], self::getCurrentId()); + return RedisHandler::clearToken($config['cache_token_pre'], (string) self::getCurrentId()); } return true; }