Skip to content

Commit add05cc

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 7efb33e commit add05cc

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)