From 8b9ef053d004347c6a24fd69456212d267566849 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 28 Oct 2024 10:02:37 +0100 Subject: [PATCH] Fix bad property names in comment events Closes #6038 --- .../lib/event/comment/response/ResponseCreated.class.php | 5 ++--- .../lib/event/comment/response/ResponseUpdated.class.php | 5 ++--- .../lib/event/comment/response/ResponsesDeleted.class.php | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/event/comment/response/ResponseCreated.class.php b/wcfsetup/install/files/lib/event/comment/response/ResponseCreated.class.php index 9b6cdfb510..f812dcadc3 100644 --- a/wcfsetup/install/files/lib/event/comment/response/ResponseCreated.class.php +++ b/wcfsetup/install/files/lib/event/comment/response/ResponseCreated.class.php @@ -16,7 +16,6 @@ use wcf\event\IPsr14Event; final class ResponseCreated implements IPsr14Event { public function __construct( - public readonly CommentResponse $comment, - ) { - } + public readonly CommentResponse $response, + ) {} } diff --git a/wcfsetup/install/files/lib/event/comment/response/ResponseUpdated.class.php b/wcfsetup/install/files/lib/event/comment/response/ResponseUpdated.class.php index c6d0258775..7032d3f384 100644 --- a/wcfsetup/install/files/lib/event/comment/response/ResponseUpdated.class.php +++ b/wcfsetup/install/files/lib/event/comment/response/ResponseUpdated.class.php @@ -16,7 +16,6 @@ use wcf\event\IPsr14Event; final class ResponseUpdated implements IPsr14Event { public function __construct( - public readonly CommentResponse $comment, - ) { - } + public readonly CommentResponse $response, + ) {} } diff --git a/wcfsetup/install/files/lib/event/comment/response/ResponsesDeleted.class.php b/wcfsetup/install/files/lib/event/comment/response/ResponsesDeleted.class.php index 0c6b7067db..f1a7ace3b4 100644 --- a/wcfsetup/install/files/lib/event/comment/response/ResponsesDeleted.class.php +++ b/wcfsetup/install/files/lib/event/comment/response/ResponsesDeleted.class.php @@ -13,12 +13,11 @@ use wcf\event\IPsr14Event; * @license GNU Lesser General Public License * @since 6.1 * - * @property-read CommentResponse[] $comments + * @property-read CommentResponse[] $responses */ final class ResponsesDeleted implements IPsr14Event { public function __construct( public readonly array $responses, - ) { - } + ) {} } -- 2.20.1