From: Julius Härtl Date: Wed, 9 Sep 2020 07:51:38 +0000 (+0200) Subject: Annotate that writeStream can throw a GenericFileException X-Git-Tag: v20.0.0beta4~8^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F22739%2Fhead;p=nextcloud-server.git Annotate that writeStream can throw a GenericFileException Signed-off-by: Julius Härtl --- diff --git a/lib/public/Files/Storage/IWriteStreamStorage.php b/lib/public/Files/Storage/IWriteStreamStorage.php index 24d6d7a1f94..319453d4bbc 100644 --- a/lib/public/Files/Storage/IWriteStreamStorage.php +++ b/lib/public/Files/Storage/IWriteStreamStorage.php @@ -26,6 +26,8 @@ declare(strict_types=1); namespace OCP\Files\Storage; +use OCP\Files\GenericFileException; + /** * Interface that adds the ability to write a stream directly to file * @@ -39,6 +41,7 @@ interface IWriteStreamStorage extends IStorage { * @param resource $stream * @param int|null $size the size of the stream if known in advance * @return int the number of bytes written + * @throws GenericFileException * @since 15.0.0 */ public function writeStream(string $path, $stream, int $size = null): int;