From de260001f1992c9a711be436a58dc19b8e876180 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 2 Feb 2022 16:25:47 +0100 Subject: [PATCH] handle setupFS with null user Signed-off-by: Robin Appelman --- lib/private/legacy/OC_Util.php | 8 ++++---- 1 file 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;