Skip to content

Commit 8e1e6ad

Browse files
committed
handle setupFS with null user
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 11cfc20 commit 8e1e6ad

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
@@ -307,16 +307,16 @@ public static function setupRootFS(string $user = '') {
307307
}
308308

309309
/**
310-
* Can be set up
310+
* Setup the file system
311311
*
312-
* @param string $user
312+
* @param string|null $user
313313
* @return boolean
314314
* @description configure the initial filesystem based on the configuration
315315
* @suppress PhanDeprecatedFunction
316316
* @suppress PhanAccessMethodInternal
317317
*/
318-
public static function setupFS($user = '') {
319-
self::setupRootFS($user);
318+
public static function setupFS(?string $user = '') {
319+
self::setupRootFS($user ?? '');
320320

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

0 commit comments

Comments
 (0)