mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(Activity): Restrict IEvent rich object parameters type
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
db68ea9496
commit
a3da7456a7
2 changed files with 6 additions and 6 deletions
|
|
@ -259,7 +259,7 @@ class Event implements IEvent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @return array<string, array<string, string>>
|
||||
* @since 11.0.0
|
||||
*/
|
||||
public function getRichSubjectParameters(): array {
|
||||
|
|
@ -335,7 +335,7 @@ class Event implements IEvent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @return array<string, array<string, string>>
|
||||
* @since 11.0.0
|
||||
*/
|
||||
public function getRichMessageParameters(): array {
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ interface IEvent {
|
|||
* See https://github.com/nextcloud/server/issues/1706 for more information.
|
||||
*
|
||||
* @param string $subject
|
||||
* @param array $parameters
|
||||
* @param array<string, array<string, string>> $parameters
|
||||
* @return $this
|
||||
* @throws InvalidValueException if the subject or parameters are invalid
|
||||
* @since 11.0.0
|
||||
|
|
@ -136,7 +136,7 @@ interface IEvent {
|
|||
public function getRichSubject(): string;
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @return array<string, array<string, string>>
|
||||
* @since 11.0.0
|
||||
*/
|
||||
public function getRichSubjectParameters(): array;
|
||||
|
|
@ -187,7 +187,7 @@ interface IEvent {
|
|||
* See https://github.com/nextcloud/server/issues/1706 for more information.
|
||||
*
|
||||
* @param string $message
|
||||
* @param array $parameters
|
||||
* @param array<string, array<string, string>> $parameters
|
||||
* @return $this
|
||||
* @throws \InvalidArgumentException if the message or parameters are invalid
|
||||
* @since 11.0.0
|
||||
|
|
@ -202,7 +202,7 @@ interface IEvent {
|
|||
public function getRichMessage(): string;
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @return array<string, array<string, string>>
|
||||
* @since 11.0.0
|
||||
*/
|
||||
public function getRichMessageParameters(): array;
|
||||
|
|
|
|||
Loading…
Reference in a new issue