diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 14:13:11 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-02 12:24:29 +0100 |
commit | 602cc7260c2d3c83ae8f6502fa0cb27819cb7e78 (patch) | |
tree | dd1e7e4ff145b0108e593ebf1668af9d1908a646 /lib | |
parent | 39cb3549be4499066acad1e46ccb227b85faefdd (diff) | |
download | nextcloud-server-602cc7260c2d3c83ae8f6502fa0cb27819cb7e78.tar.gz nextcloud-server-602cc7260c2d3c83ae8f6502fa0cb27819cb7e78.zip |
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 990ebdc20ab..4611a6a86d9 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -591,6 +591,7 @@ class Local extends \OC\Files\Storage\Common { } public function writeStream(string $path, $stream, int $size = null): int { + /** @var int|false $result We consider here that returned size will never be a float because we write less than 4GB */ $result = $this->file_put_contents($path, $stream); if (is_resource($stream)) { fclose($stream); |