Merge pull request #38843 from nextcloud/message-log-event-type

fix type in BeforeMessageLoggedEvent
pull/38864/head
Robin Appelman 2023-06-16 17:57:24 +07:00 committed by GitHub
commit d820ab2ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

@ -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;
@ -69,10 +72,10 @@ class BeforeMessageLoggedEvent extends Event {
/**
* 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;
}
}