Fix bad property names in comment events
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2024 09:02:37 +0000 (10:02 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2024 09:02:37 +0000 (10:02 +0100)
Closes #6038

wcfsetup/install/files/lib/event/comment/response/ResponseCreated.class.php
wcfsetup/install/files/lib/event/comment/response/ResponseUpdated.class.php
wcfsetup/install/files/lib/event/comment/response/ResponsesDeleted.class.php

index 9b6cdfb510aabcaacb3430bc6182dd5ef997aee3..f812dcadc36e5c734b46fdb26c1a689245a501af 100644 (file)
@@ -16,7 +16,6 @@ use wcf\event\IPsr14Event;
 final class ResponseCreated implements IPsr14Event
 {
     public function __construct(
-        public readonly CommentResponse $comment,
-    ) {
-    }
+        public readonly CommentResponse $response,
+    ) {}
 }
index c6d0258775dbeba91083b8b5804509e70aef3ec9..7032d3f38484fb7fd67be8722f98027299d31c7a 100644 (file)
@@ -16,7 +16,6 @@ use wcf\event\IPsr14Event;
 final class ResponseUpdated implements IPsr14Event
 {
     public function __construct(
-        public readonly CommentResponse $comment,
-    ) {
-    }
+        public readonly CommentResponse $response,
+    ) {}
 }
index 0c6b7067db664f1b87a9809e231720f1b81d8097..f1a7ace3b4cf95bbde69810bf99383455383d623 100644 (file)
@@ -13,12 +13,11 @@ use wcf\event\IPsr14Event;
  * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @since       6.1
  *
- * @property-read CommentResponse[] $comments
+ * @property-read CommentResponse[] $responses
  */
 final class ResponsesDeleted implements IPsr14Event
 {
     public function __construct(
         public readonly array $responses,
-    ) {
-    }
+    ) {}
 }