aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-12-19 14:13:11 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-12-19 14:47:52 +0100
commit77f2f9776f7862b0e48835d3e38b9aa895119ecb (patch)
tree1d10ceaa1c3cec0a7ab079dc165f44f830a50827 /lib
parentad999e552108f18cef72ac663faeb0b80ecdc987 (diff)
downloadnextcloud-server-77f2f9776f7862b0e48835d3e38b9aa895119ecb.tar.gz
nextcloud-server-77f2f9776f7862b0e48835d3e38b9aa895119ecb.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.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 62a04292e23..0e118e76c5f 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -609,6 +609,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);