Skip to content

Commit 23696a8

Browse files
committed
Bail out earlier if we could not read the file content of its data could not be uncompressed
1 parent 6f75be7 commit 23696a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DOFileCache.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ public function get($key)
112112
}
113113
}
114114

115+
// Bail immediately if the file could not be read, or its data could not be uncompressed
116+
if (!$cacheFileData) {
117+
return false;
118+
}
119+
115120
$cacheObj = json_decode($cacheFileData);
116121

117122
// Unable to decode JSON

0 commit comments

Comments
 (0)