*/
private string $sessionID;
- protected ?LegacySession $legacySession;
+ protected ?LegacySession $legacySession = null;
/**
* user object
$legacySessionStatement->execute($condition->getParameters());
$this->legacySession = $legacySessionStatement->fetchSingleObject(LegacySession::class);
- if (!$this->legacySession) {
+ if ($this->legacySession === null) {
try {
$this->legacySession = $this->createLegacySession();
} catch (DatabaseQueryExecutionException $e) {
$this->legacySession = $statement->fetchSingleObject(LegacySession::class);
}
- if (!$this->legacySession) {
+ if ($this->legacySession === null) {
$this->legacySession = $this->createLegacySession();
}
}
}
}
- if ($this->legacySession) {
+ if ($this->legacySession !== null) {
$sessionEditor = new SessionEditor($this->legacySession);
$sessionEditor->update($data);
}