aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Filesystem.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-02-28 16:51:44 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-04-03 10:52:34 +0200
commitf974281ac9a086004c7e971f3585ed8aa21d194d (patch)
tree905ec041b013c46efe97fdac272d0864f003707f /lib/private/Files/Filesystem.php
parent4393b96542be6b0495d93cf9ed87e9b51b36121f (diff)
downloadnextcloud-server-f974281ac9a086004c7e971f3585ed8aa21d194d.tar.gz
nextcloud-server-f974281ac9a086004c7e971f3585ed8aa21d194d.zip
Improve typing for fopen/toTmpFile
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Files/Filesystem.php')
-rw-r--r--lib/private/Files/Filesystem.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index ee8db5b4353..74205351e60 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -390,7 +390,7 @@ class Filesystem {
/**
* get the relative path of the root data directory for the current user
*
- * @return string
+ * @return ?string
*
* Returns path like /admin/files
*/
@@ -584,9 +584,10 @@ class Filesystem {
}
/**
- * @return string
+ * @param string $path
+ * @throws \OCP\Files\InvalidPathException
*/
- public static function toTmpFile($path) {
+ public static function toTmpFile($path): string|false {
return self::$defaultInstance->toTmpFile($path);
}