Skip to content

Commit

Permalink
fix: RedisHandler::clearToken 方法第二个参数类型有误 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Dec 9, 2022
1 parent 25bd23d commit 2cdc857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JwtToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2cdc857

Please sign in to comment.