Skip to content

Commit cdc1df5

Browse files
author
Anatoly Rugalev
authored
Fixed issuedAt typecheck (#57)
1 parent 8867823 commit cdc1df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/GetStream/StreamChat/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ public function createToken($userId, $expiration=null, $issuedAt=null)
239239
$payload['exp'] = $expiration;
240240
}
241241
if ($issuedAt !== null) {
242-
if (gettype($expiration) !== 'integer') {
243-
throw new StreamException("issuedat must be a unix timestamp");
242+
if (gettype($issuedAt) !== 'integer') {
243+
throw new StreamException("issuedAt must be a unix timestamp");
244244
}
245245
$payload['iat'] = $issuedAt;
246246
}

0 commit comments

Comments
 (0)