diff --git a/src/Services/RateLimitService.php b/src/Services/RateLimitService.php index 062e015..9ff6ef2 100644 --- a/src/Services/RateLimitService.php +++ b/src/Services/RateLimitService.php @@ -19,10 +19,9 @@ public function __construct(private readonly string $shopDomain) public function getRateLimitInfo(): array { - /** @var ?string $rateLimit */ $rateLimit = Redis::get($this->redisKey); - if ($rateLimit) { + if (is_string($rateLimit)) { return Arr::wrap(json_decode($rateLimit, true)); }