From 608da34fd972435a91651192b4c89d6900354a0f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 15 Jun 2023 17:29:11 +0200 Subject: [PATCH] fix type in BeforeMessageLoggedEvent Signed-off-by: Robin Appelman --- lib/public/Log/BeforeMessageLoggedEvent.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/public/Log/BeforeMessageLoggedEvent.php b/lib/public/Log/BeforeMessageLoggedEvent.php index 859ce6ec550..42219ac6532 100644 --- a/lib/public/Log/BeforeMessageLoggedEvent.php +++ b/lib/public/Log/BeforeMessageLoggedEvent.php @@ -33,12 +33,12 @@ use OCP\EventDispatcher\Event; 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 @@ class BeforeMessageLoggedEvent extends Event { return $this->level; } - /** * Get the app context of the log item * @@ -65,14 +64,13 @@ class BeforeMessageLoggedEvent extends Event { 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; } } -- 2.39.5