Skip to content

Commit bb58e47

Browse files
committed
fix(cache): filter out invalid entries in OC\Files\Cache\Wrapper\CacheWrapper::getFolderContentsById
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent c9e5c69 commit bb58e47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/private/Files/Cache/Wrapper/CacheWrapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public function getFolderContents($folder) {
8888
}
8989

9090
/**
91-
* get the metadata of all files stored in $folder
91+
* Get the metadata of all files stored in given folder
9292
*
9393
* @param int $fileId the file id of the folder
94-
* @return array
94+
* @return ICacheEntry[]
9595
*/
9696
public function getFolderContentsById($fileId) {
9797
$results = $this->getCache()->getFolderContentsById($fileId);
98-
return array_map([$this, 'formatCacheEntry'], $results);
98+
return array_filter(array_map($this->formatCacheEntry(...), $results));
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)