Skip to content

Commit d885bb5

Browse files
DmitrySkibitskyantonioribeiro
authored andcommitted
fix: cast minutes since last activity to int
1 parent 01ec816 commit d885bb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Google2FA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected function keepAlive()
164164
*/
165165
protected function minutesSinceLastActivity()
166166
{
167-
return Carbon::now()->diffInMinutes(
167+
return (int) Carbon::now()->diffInMinutes(
168168
$this->sessionGet(Constants::SESSION_AUTH_TIME),
169169
true
170170
);

0 commit comments

Comments
 (0)