Skip to content

Commit

Permalink
do not let context classes extend the message classes
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 2, 2023
1 parent 0520ef4 commit 380ae25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Messenger/RunCommandContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
/**
* @author Kevin Bond <kevinbond@gmail.com>
*/
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,
) {
}
}

0 comments on commit 380ae25

Please sign in to comment.