Skip to content

Commit f985b90

Browse files
Merge pull request #61332 from nextcloud/fix/string-expected-int-given
fix: ensure file names are string-typed
2 parents 188006b + 437952b commit f985b90

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
@@ -516,7 +516,7 @@ private function handleChildren(string $path, $recursive, int $reuse, int $folde
516516
$removedChildren = \array_diff(array_keys($existingChildren), $newChildNames);
517517
foreach ($removedChildren as $childName) {
518518
$child = $path ? $path . '/' . $childName : $childName;
519-
$this->removeFromCache($child);
519+
$this->removeFromCache((string)$child);
520520
}
521521
if ($this->useTransactions) {
522522
$this->connection->commit();

0 commit comments

Comments
 (0)