handle setupFS with null user

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-02-02 16:25:47 +01:00 committed by Vincent Petry (Rebase PR Action)
parent f9b74b3ced
commit 7f5a3695b7

View file

@ -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;