]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix type in BeforeMessageLoggedEvent 38843/head
authorRobin Appelman <robin@icewind.nl>
Thu, 15 Jun 2023 15:29:11 +0000 (17:29 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 15 Jun 2023 15:29:11 +0000 (17:29 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/public/Log/BeforeMessageLoggedEvent.php

index 7ad447149741b9e08b534f3e766add841d18b7c9..40e929d5d39402d1e0f26e5fa61f19ed7e7403bf 100644 (file)
@@ -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;
        }
 }