Skip to content

Commit 3f84d41

Browse files
come-ncMichaIng
authored andcommitted
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 1740311 commit 3f84d41

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
@@ -617,6 +617,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
617617
}
618618

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

0 commit comments

Comments
 (0)