Upgrade to 3.5

This commit is contained in:
Bastian Allgeier
2020-12-15 11:01:41 +01:00
parent eabce32cf0
commit 9109130c9c
43 changed files with 306 additions and 159 deletions

View File

@@ -107,9 +107,10 @@ class FileCache extends Cache
*/
public function retrieve(string $key)
{
$file = $this->file($key);
$file = $this->file($key);
$value = F::read($file);
return Value::fromJson(F::read($file));
return $value ? Value::fromJson($value) : null;
}
/**