diff --git a/src/DebugBar/Storage/RedisStorage.php b/src/DebugBar/Storage/RedisStorage.php index f5e86a5..b27acc1 100644 --- a/src/DebugBar/Storage/RedisStorage.php +++ b/src/DebugBar/Storage/RedisStorage.php @@ -46,7 +46,7 @@ class RedisStorage implements StorageInterface */ public function get($id) { - return array_merge(unserialize($this->redis->hGet("$this->hash:data", $id)), + return array_merge(unserialize($this->redis->hGet("$this->hash:data", $id)) ?: [], array('__meta' => unserialize($this->redis->hGet("$this->hash:meta", $id)))); }