Merge pull request #10002 from nextcloud/docs/noid/phpdoc-putContent-resource

Add resource type phpDoc for putContent methods
This commit is contained in:
Morris Jobke 2018-06-26 13:59:21 +02:00 committed by GitHub
commit 43f7ea5852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ class File extends Node implements \OCP\Files\File {
} }
/** /**
* @param string $data * @param string|resource $data
* @throws \OCP\Files\NotPermittedException * @throws \OCP\Files\NotPermittedException
* @throws \OCP\Files\GenericFileException * @throws \OCP\Files\GenericFileException
*/ */

View File

@ -97,7 +97,7 @@ class SimpleFile implements ISimpleFile {
/** /**
* Overwrite the file * Overwrite the file
* *
* @param string $data * @param string|resource $data
* @throws NotPermittedException * @throws NotPermittedException
*/ */
public function putContent($data) { public function putContent($data) {

View File

@ -632,7 +632,7 @@ class View {
/** /**
* @param string $path * @param string $path
* @param mixed $data * @param string|resource $data
* @return bool|mixed * @return bool|mixed
* @throws \Exception * @throws \Exception
*/ */

View File

@ -51,7 +51,7 @@ interface File extends Node {
/** /**
* Write to the file from string data * Write to the file from string data
* *
* @param string $data * @param string|resource $data
* @throws \OCP\Files\NotPermittedException * @throws \OCP\Files\NotPermittedException
* @throws \OCP\Files\GenericFileException * @throws \OCP\Files\GenericFileException
* @since 6.0.0 * @since 6.0.0

View File

@ -78,7 +78,7 @@ interface ISimpleFile {
/** /**
* Overwrite the file * Overwrite the file
* *
* @param string $data * @param string|resource $data
* @throws NotPermittedException * @throws NotPermittedException
* @since 11.0.0 * @since 11.0.0
*/ */