Skip to content

Commit 3d91ceb

Browse files
committed
Cast value as int
1 parent 1e4e3fb commit 3d91ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function authenticate(bool $force = false): static
130130
$this->authToken = $json->access_token;
131131

132132
if ($this->cacheKey) {
133-
Cache::put($this->cacheKey, $this->authToken, now()->addSeconds($json->expires_in));
133+
Cache::put($this->cacheKey, $this->authToken, now()->addSeconds((int) $json->expires_in));
134134
}
135135

136136
return $this;

0 commit comments

Comments
 (0)