Skip to content

Commit 437952b

Browse files
committed
fix: ensure file names are string-typed
- `$child` was used as an array key earlier. If they are numeric, they are automatically converted to ints, leading to type issues later. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
1 parent eccffd0 commit 437952b

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)