Interfaces already allow the standard carbon immutable, no need for exessive casting

This commit is contained in:
Dane Everitt
2021-01-20 20:25:40 -08:00
parent 1183fdaa57
commit 7abc643dc4
6 changed files with 8 additions and 9 deletions

View File

@@ -128,7 +128,7 @@ class DownloadBackupController extends ClientApiController
protected function getLocalBackupUrl(Backup $backup, Server $server, User $user)
{
$token = $this->jwtService
->setExpiresAt(CarbonImmutable::now()->addMinutes(15)->toDateTimeImmutable())
->setExpiresAt(CarbonImmutable::now()->addMinutes(15))
->setClaims([
'backup_uuid' => $backup->uuid,
'server_uuid' => $server->uuid,