Annotate that writeStream can throw a GenericFileException

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/22739/head
Julius Härtl 6 years ago
parent 1dddf6adc7
commit cee531d6bc
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 3
      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;

Loading…
Cancel
Save