Merge pull request #53744 from nextcloud/backport/53741/stable30

[stable30] chore(public): Remove unused union type for user mount events
This commit is contained in:
Stephan Orbaugh 2025-07-01 15:36:55 +02:00 committed by GitHub
commit 9263e8d600
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -11,7 +11,6 @@ namespace OCP\Files\Config\Event;
use OCP\EventDispatcher\Event;
use OCP\Files\Config\ICachedMountInfo;
use OCP\Files\Mount\IMountPoint;
/**
* Event emitted when a user mount was added.
@ -25,7 +24,7 @@ class UserMountAddedEvent extends Event {
* @since 31.0.6
*/
public function __construct(
public readonly IMountPoint|ICachedMountInfo $mountPoint,
public readonly ICachedMountInfo $mountPoint,
) {
parent::__construct();
}

View file

@ -11,7 +11,6 @@ namespace OCP\Files\Config\Event;
use OCP\EventDispatcher\Event;
use OCP\Files\Config\ICachedMountInfo;
use OCP\Files\Mount\IMountPoint;
/**
* Event emitted when a user mount was removed.
@ -25,7 +24,7 @@ class UserMountRemovedEvent extends Event {
* @since 31.0.6
*/
public function __construct(
public readonly IMountPoint|ICachedMountInfo $mountPoint,
public readonly ICachedMountInfo $mountPoint,
) {
parent::__construct();
}

View file

@ -11,7 +11,6 @@ namespace OCP\Files\Config\Event;
use OCP\EventDispatcher\Event;
use OCP\Files\Config\ICachedMountInfo;
use OCP\Files\Mount\IMountPoint;
/**
* Event emitted when a user mount was moved.
@ -25,8 +24,8 @@ class UserMountUpdatedEvent extends Event {
* @since 31.0.6
*/
public function __construct(
public readonly IMountPoint|ICachedMountInfo $oldMountPoint,
public readonly IMountPoint|ICachedMountInfo $newMountPoint,
public readonly ICachedMountInfo $oldMountPoint,
public readonly ICachedMountInfo $newMountPoint,
) {
parent::__construct();
}