mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(activity): allow string types for snowflake IDs
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
677d42555e
commit
f9a159e2ef
2 changed files with 5 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ class Manager implements IManager {
|
|||
/** @var string */
|
||||
protected $formattingObjectType;
|
||||
|
||||
/** @var int */
|
||||
/** @var int|string */
|
||||
protected $formattingObjectId;
|
||||
|
||||
/** @var bool */
|
||||
|
|
@ -297,9 +297,9 @@ class Manager implements IManager {
|
|||
|
||||
/**
|
||||
* @param string $type
|
||||
* @param int $id
|
||||
* @param int|numeric-string $id
|
||||
*/
|
||||
public function setFormattingObject(string $type, int $id): void {
|
||||
public function setFormattingObject(string $type, int|string $id): void {
|
||||
$this->formattingObjectType = $type;
|
||||
$this->formattingObjectId = $id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,10 +132,10 @@ interface IManager {
|
|||
|
||||
/**
|
||||
* @param string $type
|
||||
* @param int $id
|
||||
* @param int|numeric-string $id
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function setFormattingObject(string $type, int $id): void;
|
||||
public function setFormattingObject(string $type, int|string $id): void;
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue