diff --git a/lib/public/Log/BeforeMessageLoggedEvent.php b/lib/public/Log/BeforeMessageLoggedEvent.php index 7ad447149741b..40e929d5d3940 100644 --- a/lib/public/Log/BeforeMessageLoggedEvent.php +++ b/lib/public/Log/BeforeMessageLoggedEvent.php @@ -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 @@ 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; } }