mirror of
https://github.com/nextcloud/server.git
synced 2026-04-02 23:55:54 -04:00
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:
commit
5cdee9fc2a
3 changed files with 4 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue