mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
ad999e5521
commit
77f2f9776f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue