diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 14:13:11 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-04-01 13:12:05 +0000 |
commit | eaeb6b2c85f74322ce7f24f6ea2f41747e3135a7 (patch) | |
tree | e4bf9c0d7f6b3beccccd4da75444191398a0d4c0 /lib | |
parent | 741553eb93073d7d9feeb5660c5974a50304053b (diff) | |
download | nextcloud-server-eaeb6b2c85f74322ce7f24f6ea2f41747e3135a7.tar.gz nextcloud-server-eaeb6b2c85f74322ce7f24f6ea2f41747e3135a7.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 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); |