From 73cf71a20fb99473aa795bffe8fbb70d075226d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 26 Jun 2018 11:07:41 +0200 Subject: [PATCH] Add resource type phpDoc for putContent methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Files/Node/File.php | 2 +- lib/private/Files/SimpleFS/SimpleFile.php | 2 +- lib/private/Files/View.php | 2 +- lib/public/Files/File.php | 2 +- lib/public/Files/SimpleFS/ISimpleFile.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php index 2ddbac97dceba..7c411620ca045 100644 --- a/lib/private/Files/Node/File.php +++ b/lib/private/Files/Node/File.php @@ -56,7 +56,7 @@ public function getContent() { } /** - * @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 1f2b497a192c4..e9bf0213d073b 100644 --- a/lib/private/Files/SimpleFS/SimpleFile.php +++ b/lib/private/Files/SimpleFS/SimpleFile.php @@ -97,7 +97,7 @@ public function getContent() { /** * 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 bfc831af41cfb..c6429a89942c6 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -632,7 +632,7 @@ protected function emit_file_hooks_post($exists, $path) { /** * @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 0f052bc66ad9a..ad2cb7b55c212 100644 --- a/lib/public/Files/File.php +++ b/lib/public/Files/File.php @@ -51,7 +51,7 @@ public function getContent(); /** * 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 e03509d7abf79..cd092056cdae3 100644 --- a/lib/public/Files/SimpleFS/ISimpleFile.php +++ b/lib/public/Files/SimpleFS/ISimpleFile.php @@ -78,7 +78,7 @@ public function getContent(); /** * Overwrite the file * - * @param string $data + * @param string|resource $data * @throws NotPermittedException * @since 11.0.0 */