handle setupFS with null user

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/30942/head
Robin Appelman 2022-02-02 16:25:47 +07:00
parent b799fd40e9
commit de260001f1
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 4 additions and 4 deletions

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