summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-09 09:51:38 +0200
committerJulius Härtl <jus@bitgrid.net>2020-09-10 09:03:53 +0200
commitcee531d6bc9e9f885ee0ab2d7c5135b9f3bfa9e5 (patch)
tree739d3e4282ab526d7cebcea832aeb27b779f43ab /lib/public/Files
parent1dddf6adc7b7e4654679dbe30ccbae4ed6ad740b (diff)
downloadnextcloud-server-cee531d6bc9e9f885ee0ab2d7c5135b9f3bfa9e5.tar.gz
nextcloud-server-cee531d6bc9e9f885ee0ab2d7c5135b9f3bfa9e5.zip
Annotate that writeStream can throw a GenericFileException
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Storage/IWriteStreamStorage.php3
1 files changed, 3 insertions, 0 deletions
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;