diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php
index 2ddbac97dceba1e42be2b0c5c7a72052e7ef92b5..7c411620ca04526aa907d907a904d35b220cc26e 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 1f2b497a192c4bd83c48890ee7544c9795dc6922..e9bf0213d073bbf525ec38e14106ab8556024469 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 bfc831af41cfb028fb81dbc038b4e7f3420696b2..c6429a89942c62ff82e4a42da3a97d92d919f7b3 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 0f052bc66ad9af6f297bb3bcd8a4b3b09931ac28..ad2cb7b55c21280d4c1266069eb9e16cd38b035d 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 e03509d7abf7976da63610dc30b8933538ecbb85..cd092056cdae395d972cd44f51dbcd819d783f19 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
 	 */