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.
2 parents 14f2461 + d2da9c8 commit f0a6c44Copy full SHA for f0a6c44
lib/private/Files/Cache/Cache.php
@@ -606,9 +606,12 @@ private function removeChildren(ICacheEntry $entry) {
606
}
607
608
/** @var ICacheEntry[] $childFolders */
609
- $childFolders = array_filter($children, function ($child) {
610
- return $child->getMimeType() == FileInfo::MIMETYPE_FOLDER;
611
- });
+ $childFolders = [];
+ foreach ($children as $child) {
+ if ($child->getMimeType() == FileInfo::MIMETYPE_FOLDER) {
612
+ $childFolders[] = $child;
613
+ }
614
615
foreach ($childFolders as $folder) {
616
$parentIds[] = $folder->getId();
617
$queue[] = $folder->getId();
0 commit comments