Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2020-12-21 15:43:51 +0300
committerTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2020-12-21 21:04:18 +0300
commit4f2dc18f58737894f52f585203402307c64b595e (patch)
tree6679e5760788a955febc03efba77b1342866e717 /lib/public/Files
parentf3513f3fe4dc52143798e60deb4367f2c829029f (diff)
storage: update IStorage#file_put_contents docs to match usage
The current phpdoc of IStorage#file_put_contents doesnt corresponds to it's actual usage in code, e.g. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Storage.php4
-rw-r--r--lib/public/Files/Storage/IStorage.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index d642512641d..2d89ce9f28e 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -230,8 +230,8 @@ interface Storage extends IStorage {
* see http://php.net/manual/en/function.file_put_contents.php
*
* @param string $path
- * @param string $data
- * @return bool
+ * @param mixed $data
+ * @return int|false
* @since 6.0.0
*/
public function file_put_contents($path, $data);
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index f5073d1ad73..9cd5553b8bf 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -226,8 +226,8 @@ interface IStorage {
* see http://php.net/manual/en/function.file_put_contents.php
*
* @param string $path
- * @param string $data
- * @return bool
+ * @param mixed $data
+ * @return int|false
* @since 9.0.0
*/
public function file_put_contents($path, $data);