Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 8367ef6

Browse files
author
Jens Schulze
committed
fix(Customer): fix create email token request with TTL
1 parent ae11318 commit 8367ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Request/Customers/CustomerEmailTokenRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function httpRequest()
7575
{
7676
$payload = [
7777
static::ID => $this->getId(),
78-
static::VERSION => $this->getVersion(),
79-
static::TTL_MINUTES => $this->ttlMinutes,
78+
static::VERSION => (int)$this->getVersion(),
79+
static::TTL_MINUTES => (int)$this->ttlMinutes,
8080
];
8181
return new JsonRequest(HttpMethod::POST, $this->getPath(), $payload);
8282
}

0 commit comments

Comments
 (0)