]> source.dussan.org Git - nextcloud-server.git/commitdiff
Annotate that writeStream can throw a GenericFileException 22739/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 9 Sep 2020 07:51:38 +0000 (09:51 +0200)
committerJulius Härtl <jus@bitgrid.net>
Thu, 10 Sep 2020 07:03:53 +0000 (09:03 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/public/Files/Storage/IWriteStreamStorage.php

index 24d6d7a1f94c31e98bccf03b5c0278b631d93709..319453d4bbc93e5c6fb1614249acd7c499b9f199 100644 (file)
@@ -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;