Skip to content

Commit 5cdee9f

Browse files
authored
Merge pull request #53745 from nextcloud/backport/53741/stable31
[stable31] chore(public): Remove unused union type for user mount events
2 parents 359fe58 + 0229fe2 commit 5cdee9f

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

lib/public/Files/Config/Event/UserMountAddedEvent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use OCP\EventDispatcher\Event;
1313
use OCP\Files\Config\ICachedMountInfo;
14-
use OCP\Files\Mount\IMountPoint;
1514

1615
/**
1716
* Event emitted when a user mount was added.
@@ -20,7 +19,7 @@
2019
*/
2120
class UserMountAddedEvent extends Event {
2221
public function __construct(
23-
public readonly IMountPoint|ICachedMountInfo $mountPoint,
22+
public readonly ICachedMountInfo $mountPoint,
2423
) {
2524
parent::__construct();
2625
}

lib/public/Files/Config/Event/UserMountRemovedEvent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use OCP\EventDispatcher\Event;
1313
use OCP\Files\Config\ICachedMountInfo;
14-
use OCP\Files\Mount\IMountPoint;
1514

1615
/**
1716
* Event emitted when a user mount was removed.
@@ -20,7 +19,7 @@
2019
*/
2120
class UserMountRemovedEvent extends Event {
2221
public function __construct(
23-
public readonly IMountPoint|ICachedMountInfo $mountPoint,
22+
public readonly ICachedMountInfo $mountPoint,
2423
) {
2524
parent::__construct();
2625
}

lib/public/Files/Config/Event/UserMountUpdatedEvent.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use OCP\EventDispatcher\Event;
1313
use OCP\Files\Config\ICachedMountInfo;
14-
use OCP\Files\Mount\IMountPoint;
1514

1615
/**
1716
* Event emitted when a user mount was moved.
@@ -20,8 +19,8 @@
2019
*/
2120
class UserMountUpdatedEvent extends Event {
2221
public function __construct(
23-
public readonly IMountPoint|ICachedMountInfo $oldMountPoint,
24-
public readonly IMountPoint|ICachedMountInfo $newMountPoint,
22+
public readonly ICachedMountInfo $oldMountPoint,
23+
public readonly ICachedMountInfo $newMountPoint,
2524
) {
2625
parent::__construct();
2726
}

0 commit comments

Comments
 (0)