Skip to content

Commit 5fe630b

Browse files
blizzzbackportbot[bot]
authored andcommitted
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 4bde382 commit 5fe630b

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
@@ -526,7 +526,7 @@ private function handleChildren(string $path, $recursive, int $reuse, int $folde
526526
$removedChildren = \array_diff(array_keys($existingChildren), $newChildNames);
527527
foreach ($removedChildren as $childName) {
528528
$child = $path ? $path . '/' . $childName : $childName;
529-
$this->removeFromCache($child);
529+
$this->removeFromCache((string)$child);
530530
}
531531
if ($this->useTransactions) {
532532
$this->connection->commit();

0 commit comments

Comments
 (0)