Skip to content

Commit 45ba0fe

Browse files
Set empty string as default value (#161)
1 parent 0a61532 commit 45ba0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Storage/LaravelCacheStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(Cache $cache)
2626
public function fetch($key)
2727
{
2828
try {
29-
$cache = unserialize($this->cache->get($key));
29+
$cache = unserialize($this->cache->get($key, ''));
3030
if ($cache instanceof CacheEntry) {
3131
return $cache;
3232
}
@@ -70,7 +70,7 @@ public function delete($key)
7070
{
7171
return $this->cache->forget($key);
7272
}
73-
73+
7474
protected function getLifeTime(CacheEntry $data)
7575
{
7676
$version = app()->version();

0 commit comments

Comments
 (0)