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 Robin Appelman (Rebase PR Action)
parent 11cfc20ace
commit 8e1e6ad7da

View file

@ -307,16 +307,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;