diff --git a/lib/public/Log/BeforeMessageLoggedEvent.php b/lib/public/Log/BeforeMessageLoggedEvent.php index 859ce6ec55035..42219ac6532bd 100644 --- a/lib/public/Log/BeforeMessageLoggedEvent.php +++ b/lib/public/Log/BeforeMessageLoggedEvent.php @@ -33,12 +33,12 @@ class BeforeMessageLoggedEvent extends Event { private int $level; private string $app; - private $message; + private array $message; /** * @since 26.0.8 */ - 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; @@ -54,7 +54,6 @@ public function getLevel(): int { return $this->level; } - /** * Get the app context of the log item * @@ -65,14 +64,13 @@ public function getApp(): string { return $this->app; } - /** * Get the message of the log item * - * @return string + * @return array * @since 26.0.8 */ - public function getMessage(): string { + public function getMessage(): array { return $this->message; } }