From: Côme Chilliet Date: Mon, 19 Dec 2022 13:13:11 +0000 (+0100) Subject: Silence a warning from psalm with explanation X-Git-Tag: v26.0.1rc1~29^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eaeb6b2c85f74322ce7f24f6ea2f41747e3135a7;p=nextcloud-server.git Silence a warning from psalm with explanation Signed-off-by: Côme Chilliet --- diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index fe6a6d6e21a..0f213adc9ba 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -617,6 +617,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);