Skip to content

Commit

Permalink
fix(Activity): Restrict IEvent rich object parameters type
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Sep 10, 2024
1 parent db68ea9 commit a3da745
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/private/Activity/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getRichSubject(): string {
}

/**
* @return array[]
* @return array<string, array<string, string>>
* @since 11.0.0
*/
public function getRichSubjectParameters(): array {
Expand Down Expand Up @@ -335,7 +335,7 @@ public function getRichMessage(): string {
}

/**
* @return array[]
* @return array<string, array<string, string>>
* @since 11.0.0
*/
public function getRichMessageParameters(): array {
Expand Down
8 changes: 4 additions & 4 deletions lib/public/Activity/IEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function getParsedSubject(): string;
* 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
Expand All @@ -136,7 +136,7 @@ public function setRichSubject(string $subject, array $parameters = []): self;
public function getRichSubject(): string;

/**
* @return array[]
* @return array<string, array<string, string>>
* @since 11.0.0
*/
public function getRichSubjectParameters(): array;
Expand Down Expand Up @@ -187,7 +187,7 @@ public function getParsedMessage(): string;
* 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
Expand All @@ -202,7 +202,7 @@ public function setRichMessage(string $message, array $parameters = []): self;
public function getRichMessage(): string;

/**
* @return array[]
* @return array<string, array<string, string>>
* @since 11.0.0
*/
public function getRichMessageParameters(): array;
Expand Down

0 comments on commit a3da745

Please sign in to comment.