Skip to content

Commit ffc0e7c

Browse files
committed
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 6858bc6 commit ffc0e7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/Files/Storage/Local.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
609609
}
610610

611611
public function writeStream(string $path, $stream, int $size = null): int {
612+
/** @var int|false $result We consider here that returned size will never be a float because we write less than 4GB */
612613
$result = $this->file_put_contents($path, $stream);
613614
if (is_resource($stream)) {
614615
fclose($stream);

0 commit comments

Comments
 (0)