Explicitly cast $remember to int rather than using identity operator

Signed-off-by: justin-sleep <justin@quarterfull.com>
This commit is contained in:
justin-sleep 2016-12-01 04:58:38 -06:00
parent 9ee9d21cfd
commit bcadd22480
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ class Session implements IUserSession, Emitter {
try {
$sessionId = $this->session->getId();
$pwd = $this->getPassword($password);
$this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, +$remember);
$this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, (int)$remember);
return true;
} catch (SessionNotAvailableException $ex) {
// This can happen with OCC, where a memory session is used