Skip to content

Commit 6f0eeb0

Browse files
authored
Merge pull request #1 from jonkerw85/patch-1
Update Blacklist.php
2 parents e3216b5 + ab898ad commit 6f0eeb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Blacklist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function getMinutesUntilExpired(Payload $payload)
9999

100100
// Handle Carbon 2 vs 3 deprecation of "Real" diff functions, see https://github.com/PHP-Open-Source-Saver/jwt-auth/issues/260
101101
if (method_exists($intermediateResult, 'diffInRealMinutes')) {
102-
return round($intermediateResult->diffInRealMinutes(null, true));
102+
return (int) round($intermediateResult->diffInRealMinutes(null, true));
103103
} else {
104104
return (int) round($intermediateResult->diffInMinutes(null, true));
105105
}

0 commit comments

Comments
 (0)