Skip to content

Commit

Permalink
type casting reintroduced
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Feb 26, 2023
1 parent 67903a9 commit 82c12ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Linna/Authentication/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function refresh(): bool
$time = \time();

//check if login expired
if (($this->session->get('loginTime') + $this->session->get('expire')) < $time) {
if (((int) $this->session->get('loginTime') + (int) $this->session->get('expire')) < $time) {
return false;
}

Expand Down

0 comments on commit 82c12ec

Please sign in to comment.