Skip to content

Commit 7f25853

Browse files
authoredMar 18, 2024··
Add missing returns (#186)
Closes #185
1 parent 6bd64db commit 7f25853

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/Storage/FlysystemStorage.php

+6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ public function fetch($key)
4444
*/
4545
public function save($key, CacheEntry $data)
4646
{
47+
try {
4748
$this->filesystem->write($key, serialize($data));
49+
return true;
50+
} catch (FilesystemException $e) {
51+
return false;
52+
}
4853
}
4954

5055
/**
@@ -54,6 +59,7 @@ public function delete($key)
5459
{
5560
try {
5661
$this->filesystem->delete($key);
62+
return true;
5763
} catch (FilesystemException $ex) {
5864
return true;
5965
}

0 commit comments

Comments
 (0)
Please sign in to comment.