Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
handle setupFS with null user
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and PVince81 committed Feb 16, 2022
commit 7f5a3695b730b4ba9f96310e618c63a1da54c9b1
8 changes: 4 additions & 4 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,16 @@ public static function setupRootFS(string $user = '') {
}

/**
* 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;
Expand Down