phpstan & refactoring

This commit is contained in:
Milos Stojanovic
2019-06-14 13:07:01 +02:00
parent f6185c92ab
commit fa319eda36
8 changed files with 20 additions and 7 deletions

View File

@@ -55,7 +55,11 @@ class SessionStorage implements Service, SessionStorageInterface
public function invalidate()
{
if ($this->getSession() !== null || ! $this->getSession()->isStarted()) {
if ($this->getSession() === null) {
return;
}
if (! $this->getSession()->isStarted()) {
$this->getSession()->start();
}