Skip to content

Commit

Permalink
Carbon::addSeconds() doesn't accept string values
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 13, 2025
1 parent 1754610 commit 10088d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Licensing/Outpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private function cacheAndReturnValidationResponse($e)

private function cacheAndReturnRateLimitResponse($e)
{
$seconds = $e->getResponse()->getHeader('Retry-After')[0];
$seconds = (int) $e->getResponse()->getHeader('Retry-After')[0];

return $this->cacheResponse(now()->addSeconds($seconds), ['error' => 429]);
}
Expand Down

0 comments on commit 10088d2

Please sign in to comment.