diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 14:13:11 +0100 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2023-04-01 14:20:25 +0200 |
commit | 3f84d41226e75597a90b2f11813b8298c506c947 (patch) | |
tree | c2039d052cf24a83a7e4380477f5733a405355e6 /lib/private/Files/Storage/Local.php | |
parent | 1740311283b75d7bda3c92c5ef6d05096485bb1d (diff) | |
download | nextcloud-server-3f84d41226e75597a90b2f11813b8298c506c947.tar.gz nextcloud-server-3f84d41226e75597a90b2f11813b8298c506c947.zip |
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Files/Storage/Local.php')
-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 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); |