From 380ae25f02e34809fba16fa387191f1da9852778 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 2 Nov 2023 14:06:08 +0100 Subject: [PATCH] do not let context classes extend the message classes --- Messenger/RunCommandContext.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Messenger/RunCommandContext.php b/Messenger/RunCommandContext.php index 35d5cbeba..2ee5415c6 100644 --- a/Messenger/RunCommandContext.php +++ b/Messenger/RunCommandContext.php @@ -14,10 +14,12 @@ /** * @author Kevin Bond */ -final class RunCommandContext extends RunCommandMessage +final class RunCommandContext { - public function __construct(RunCommandMessage $message, public readonly int $exitCode, public readonly string $output) - { - parent::__construct($message->input, $message->throwOnFailure, $message->catchExceptions); + public function __construct( + public readonly RunCommandMessage $message, + public readonly int $exitCode, + public readonly string $output, + ) { } }