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:
authorRobin Appelman <robin@icewind.nl>2022-02-02 18:25:47 +0300
committerRobin Appelman <robin@icewind.nl>2022-02-09 18:01:36 +0300
commitde260001f1992c9a711be436a58dc19b8e876180 (patch)
tree492608cd8ed73b109e3f518422906b8a0c2c84eb /lib/private/legacy/OC_Util.php
parentb799fd40e9fa5a3c148dd092e538550cf0498f7e (diff)
handle setupFS with null user
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r--lib/private/legacy/OC_Util.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 3e3708f201b..9110678537f 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -308,16 +308,16 @@ class OC_Util {
}
/**
- * Can be set up
+ * Setup the file system
*
- * @param string $user
+ * @param string|null $user
* @return boolean
* @description configure the initial filesystem based on the configuration
* @suppress PhanDeprecatedFunction
* @suppress PhanAccessMethodInternal
*/
- public static function setupFS($user = '') {
- self::setupRootFS($user);
+ public static function setupFS(?string $user = '') {
+ self::setupRootFS($user ?? '');
if (self::$fsSetup) {
return false;