Skip to content

Commit

Permalink
storage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isamarin committed Nov 21, 2019
1 parent fa473ef commit 72e4e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Alisa/SessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public function setItem($key, $item): void

/**
* @param $key
* @return |null |null |null
* @return null
*/
public function getItem($key)
{
if (array_key_exists($key, $this->data[self::COMMON])) {
if (isset($this->data[self::COMMON]) && array_key_exists($key, $this->data[self::COMMON])) {
return $this->data[self::COMMON][$key];
}
return null;
Expand Down

0 comments on commit 72e4e09

Please sign in to comment.