From: Marcel Werk Date: Mon, 28 Oct 2024 09:02:37 +0000 (+0100) Subject: Fix bad property names in comment events X-Git-Tag: 6.1.0~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b9ef053d004347c6a24fd69456212d267566849;p=GitHub%2FWoltLab%2FWCF.git Fix bad property names in comment events Closes #6038 --- 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, - ) { - } + ) {} }