Skip to content

Commit

Permalink
Merge pull request #38843 from nextcloud/message-log-event-type
Browse files Browse the repository at this point in the history
fix type in BeforeMessageLoggedEvent
  • Loading branch information
icewind1991 committed Jun 16, 2023
2 parents b288d27 + 53443e8 commit d820ab2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/public/Log/BeforeMessageLoggedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ class BeforeMessageLoggedEvent extends Event {
private $message;

/**
* @param string $app
* @param int $level
* @param array $message
* @since 28.0.0
*/
public function __construct(string $app, int $level, $message) {
public function __construct(string $app, int $level, array $message) {
$this->level = $level;
$this->app = $app;
$this->message = $message;
Expand Down Expand Up @@ -69,10 +72,10 @@ public function getApp(): string {
/**
* Get the message of the log item
*
* @return string
* @return array
* @since 28.0.0
*/
public function getMessage(): string {
public function getMessage(): array {
return $this->message;
}
}

0 comments on commit d820ab2

Please sign in to comment.