summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-26 13:59:21 +0200
committerGitHub <noreply@github.com>2018-06-26 13:59:21 +0200
commit43f7ea5852db6375efe1fd2f309eb919e3e97feb (patch)
tree4b08bc58cfd1023c7a74b19396eea104f60d19d9 /lib
parentbeea2875168a8d2b972ffa3b7261e093aeb8f0ed (diff)
parent73cf71a20fb99473aa795bffe8fbb70d075226d7 (diff)
downloadnextcloud-server-43f7ea5852db6375efe1fd2f309eb919e3e97feb.tar.gz
nextcloud-server-43f7ea5852db6375efe1fd2f309eb919e3e97feb.zip
Merge pull request #10002 from nextcloud/docs/noid/phpdoc-putContent-resource
Add resource type phpDoc for putContent methods
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Node/File.php2
-rw-r--r--lib/private/Files/SimpleFS/SimpleFile.php2
-rw-r--r--lib/private/Files/View.php2
-rw-r--r--lib/public/Files/File.php2
-rw-r--r--lib/public/Files/SimpleFS/ISimpleFile.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php
index 2ddbac97dce..7c411620ca0 100644
--- a/lib/private/Files/Node/File.php
+++ b/lib/private/Files/Node/File.php
@@ -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\GenericFileException
*/
diff --git a/lib/private/Files/SimpleFS/SimpleFile.php b/lib/private/Files/SimpleFS/SimpleFile.php
index 1f2b497a192..e9bf0213d07 100644
--- a/lib/private/Files/SimpleFS/SimpleFile.php
+++ b/lib/private/Files/SimpleFS/SimpleFile.php
@@ -97,7 +97,7 @@ class SimpleFile implements ISimpleFile {
/**
* Overwrite the file
*
- * @param string $data
+ * @param string|resource $data
* @throws NotPermittedException
*/
public function putContent($data) {
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index bfc831af41c..c6429a89942 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -632,7 +632,7 @@ class View {
/**
* @param string $path
- * @param mixed $data
+ * @param string|resource $data
* @return bool|mixed
* @throws \Exception
*/
diff --git a/lib/public/Files/File.php b/lib/public/Files/File.php
index 0f052bc66ad..ad2cb7b55c2 100644
--- a/lib/public/Files/File.php
+++ b/lib/public/Files/File.php
@@ -51,7 +51,7 @@ interface File extends Node {
/**
* Write to the file from string data
*
- * @param string $data
+ * @param string|resource $data
* @throws \OCP\Files\NotPermittedException
* @throws \OCP\Files\GenericFileException
* @since 6.0.0
diff --git a/lib/public/Files/SimpleFS/ISimpleFile.php b/lib/public/Files/SimpleFS/ISimpleFile.php
index e03509d7abf..cd092056cda 100644
--- a/lib/public/Files/SimpleFS/ISimpleFile.php
+++ b/lib/public/Files/SimpleFS/ISimpleFile.php
@@ -78,7 +78,7 @@ interface ISimpleFile {
/**
* Overwrite the file
*
- * @param string $data
+ * @param string|resource $data
* @throws NotPermittedException
* @since 11.0.0
*/