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

@@ -114,7 +114,7 @@ class ServerTransferController extends Controller
// that node to communicate with the old node during the process to initiate the
// actual file transfer.
$token = $this->jwtService
->setExpiresAt(CarbonImmutable::now()->addMinutes(15)->toDateTimeImmutable())
->setExpiresAt(CarbonImmutable::now()->addMinutes(15))
->setSubject($server->uuid)
->handle($server->node, $server->uuid, 'sha256');