We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b742ab commit 99dbe6aCopy full SHA for 99dbe6a
1 file changed
lib/private/Files/Cache/Wrapper/CacheWrapper.php
@@ -60,7 +60,7 @@ protected function getCache() {
60
* Make it easy for wrappers to modify every returned cache entry
61
*
62
* @param ICacheEntry $entry
63
- * @return ICacheEntry
+ * @return ICacheEntry|false
64
*/
65
protected function formatCacheEntry($entry) {
66
return $entry;
@@ -311,7 +311,8 @@ public function getQueryFilterForStorage(): ISearchOperator {
311
public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
312
$rawEntry = $this->getCache()->getCacheEntryFromSearchResult($rawEntry);
313
if ($rawEntry) {
314
- return $this->formatCacheEntry(clone $rawEntry);
+ $entry = $this->formatCacheEntry(clone $rawEntry);
315
+ return $entry ?: null;
316
}
317
318
return null;
0 commit comments