Skip to content

Commit 7f5a369

Browse files
icewind1991PVince81
authored andcommitted
handle setupFS with null user
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent f9b74b3 commit 7f5a369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/private/legacy/OC_Util.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,16 +308,16 @@ public static function setupRootFS(string $user = '') {
308308
}
309309

310310
/**
311-
* Can be set up
311+
* Setup the file system
312312
*
313-
* @param string $user
313+
* @param string|null $user
314314
* @return boolean
315315
* @description configure the initial filesystem based on the configuration
316316
* @suppress PhanDeprecatedFunction
317317
* @suppress PhanAccessMethodInternal
318318
*/
319-
public static function setupFS($user = '') {
320-
self::setupRootFS($user);
319+
public static function setupFS(?string $user = '') {
320+
self::setupRootFS($user ?? '');
321321

322322
if (self::$fsSetup) {
323323
return false;

0 commit comments

Comments
 (0)