diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-09 20:39:28 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-10 16:37:54 +0200 |
commit | a3da7456a7b4872cf788b6d853e792d83af7b505 (patch) | |
tree | fcf57673cb8c61ccde8b92ad378d8a40a067acf5 /lib | |
parent | db68ea94961206af6a685a3d92da142a6d08445a (diff) | |
download | nextcloud-server-a3da7456a7b4872cf788b6d853e792d83af7b505.tar.gz nextcloud-server-a3da7456a7b4872cf788b6d853e792d83af7b505.zip |
fix(Activity): Restrict IEvent rich object parameters type
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Activity/Event.php | 4 | ||||
-rw-r--r-- | lib/public/Activity/IEvent.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Activity/Event.php b/lib/private/Activity/Event.php index 97ab7d1c935..02cfd758058 100644 --- a/lib/private/Activity/Event.php +++ b/lib/private/Activity/Event.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 { diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php index f204de599b9..eba426c5ecf 100644 --- a/lib/public/Activity/IEvent.php +++ b/lib/public/Activity/IEvent.php @@ -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; |