Skip to content

Commit 64f8a02

Browse files
Merge pull request #61361 from nextcloud/backport/61332/stable34
[stable34] fix: ensure file names are string-typed
2 parents 56a2144 + add05cc commit 64f8a02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Cache/Scanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ private function handleChildren(string $path, $recursive, int $reuse, int $folde
515515
$removedChildren = \array_diff(array_keys($existingChildren), $newChildNames);
516516
foreach ($removedChildren as $childName) {
517517
$child = $path ? $path . '/' . $childName : $childName;
518-
$this->removeFromCache($child);
518+
$this->removeFromCache((string)$child);
519519
}
520520
if ($this->useTransactions) {
521521
$this->connection->commit();

0 commit comments

Comments
 (0)