Merge pull request #53745 from nextcloud/backport/53741/stable31

[stable31] chore(public): Remove unused union type for user mount events
This commit is contained in:
Stephan Orbaugh 2025-07-01 15:36:08 +02:00 committed by GitHub
commit 5cdee9fc2a
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.
@ -20,7 +19,7 @@ use OCP\Files\Mount\IMountPoint;
*/
class UserMountAddedEvent extends Event {
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.
@ -20,7 +19,7 @@ use OCP\Files\Mount\IMountPoint;
*/
class UserMountRemovedEvent extends Event {
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.
@ -20,8 +19,8 @@ use OCP\Files\Mount\IMountPoint;
*/
class UserMountUpdatedEvent extends Event {
public function __construct(
public readonly IMountPoint|ICachedMountInfo $oldMountPoint,
public readonly IMountPoint|ICachedMountInfo $newMountPoint,
public readonly ICachedMountInfo $oldMountPoint,
public readonly ICachedMountInfo $newMountPoint,
) {
parent::__construct();
}