Skip to content

Commit

Permalink
explicit case
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
icewind1991 committed Jan 8, 2020
1 parent 2f77b87 commit 7beea78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Channel/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getSessionCount(): int {

$query->select($query->func()->count())
->from('documentserver_sess');
return $query->execute()->fetchColumn();
return (int)$query->execute()->fetchColumn();
}

public function getSession(string $sessionId): ?Session {
Expand Down

0 comments on commit 7beea78

Please sign in to comment.