Commit 83b9ab8e authored by 谢宇轩's avatar 谢宇轩

fix: 修改几处不严格的变量类型

parent e4d0a1a3
......@@ -165,7 +165,7 @@ class SdkRequest extends Request
*/
public function withRequestID(?string $uuid = null): self
{
$this->uuid = $uuid;
$this->uuid = $uuid ?? "";
$RequestIDMiddleware = new RequestIDMiddleware($this->uuid);
$this->middlewares[] = $RequestIDMiddleware;
return $this;
......
......@@ -122,8 +122,7 @@ abstract class Option
*/
public function getAuthExpires(): int
{
return static::AUTH_CACHE_EXPIRES_AT ?? 30000;
return empty(static::AUTH_CACHE_EXPIRES_AT) ? self::AUTH_CACHE_EXPIRES_AT : static::AUTH_CACHE_EXPIRES_AT;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment