When no user is logged in null is used

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-07-29 09:42:54 +02:00
parent 1f42a8b5cb
commit d4a4d5c6ef
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -52,7 +52,7 @@ use OCP\Share\IShare;
class Manager {
public const STORAGE = '\OCA\Files_Sharing\External\Storage';
/** @var string */
/** @var string|null */
private $uid;
/** @var IDBConnection */
@ -98,7 +98,7 @@ class Manager {
ICloudFederationFactory $cloudFederationFactory,
IGroupManager $groupManager,
IUserManager $userManager,
string $uid,
?string $uid,
IEventDispatcher $eventDispatcher) {
$this->connection = $connection;
$this->mountManager = $mountManager;