summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-02-02 16:25:47 +0100
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-02-16 10:46:48 +0000
commit7f5a3695b730b4ba9f96310e618c63a1da54c9b1 (patch)
tree0dd46857a1689c3c4c6fd92f0650688dd3b96d5b
parentf9b74b3ced3017a5f12180e3acedeaf27dd8df49 (diff)
downloadnextcloud-server-7f5a3695b730b4ba9f96310e618c63a1da54c9b1.tar.gz
nextcloud-server-7f5a3695b730b4ba9f96310e618c63a1da54c9b1.zip
handle setupFS with null user
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 a0b78065b2f..7df69262c00 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;