Skip to content

Commit 9263e8d

Browse files
authored
Merge pull request #53744 from nextcloud/backport/53741/stable30
[stable30] chore(public): Remove unused union type for user mount events
2 parents ed743bc + 17b81ed commit 9263e8d

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.
@@ -25,7 +24,7 @@ class UserMountAddedEvent extends Event {
2524
* @since 31.0.6
2625
*/
2726
public function __construct(
28-
public readonly IMountPoint|ICachedMountInfo $mountPoint,
27+
public readonly ICachedMountInfo $mountPoint,
2928
) {
3029
parent::__construct();
3130
}

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.
@@ -25,7 +24,7 @@ class UserMountRemovedEvent extends Event {
2524
* @since 31.0.6
2625
*/
2726
public function __construct(
28-
public readonly IMountPoint|ICachedMountInfo $mountPoint,
27+
public readonly ICachedMountInfo $mountPoint,
2928
) {
3029
parent::__construct();
3130
}

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.
@@ -25,8 +24,8 @@ class UserMountUpdatedEvent extends Event {
2524
* @since 31.0.6
2625
*/
2726
public function __construct(
28-
public readonly IMountPoint|ICachedMountInfo $oldMountPoint,
29-
public readonly IMountPoint|ICachedMountInfo $newMountPoint,
27+
public readonly ICachedMountInfo $oldMountPoint,
28+
public readonly ICachedMountInfo $newMountPoint,
3029
) {
3130
parent::__construct();
3231
}

0 commit comments

Comments
 (0)