fix(Activity): Restrict IEvent rich object parameters type

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/47662/head
provokateurin 2 years ago
parent db68ea9496
commit a3da7456a7
No known key found for this signature in database
  1. 4
      lib/private/Activity/Event.php
  2. 8
      lib/public/Activity/IEvent.php

@ -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…
Cancel
Save