Skip to content

Commit f0d5ea1

Browse files
author
Azure Pipeplines CI
committed
Remove unnecessary floor on comparation
1 parent 2d901bd commit f0d5ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static function decode(
182182
}
183183

184184
// Check if this token has expired.
185-
if (isset($payload->exp) && floor($payload->exp) && ($timestamp - static::$leeway) >= $payload->exp) {
185+
if (isset($payload->exp) && ($timestamp - static::$leeway) >= $payload->exp) {
186186
$ex = new ExpiredException('Expired token');
187187
$ex->setPayload($payload);
188188
throw $ex;

0 commit comments

Comments
 (0)