Skip to content

Commit 602cc72

Browse files
committed
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 39cb354 commit 602cc72

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
@@ -591,6 +591,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
591591
}
592592

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

0 commit comments

Comments
 (0)