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
committerblizzz (Rebase PR Action) <blizzz@users.noreply.github.com>2022-03-10 20:19:21 +0300
commit68b0bbd2b404bfc69fb96ac92832999063e10699 (patch)
treef0501fcb824a53782d3939c8edae770fb1f14b8c
parent6a32a6b15649368ff14bef32742e1d0a703d9443 (diff)
handle setupFS with null userbackport/30942/stable22
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 600b19facda..9892faf6032 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -307,16 +307,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;