diff --git a/src/Messages/SendMessageCommand.php b/src/Messages/SendMessageCommand.php index f09e0af..0468618 100644 --- a/src/Messages/SendMessageCommand.php +++ b/src/Messages/SendMessageCommand.php @@ -20,7 +20,7 @@ class SendMessageCommand * @param string $type The message type * @param array $data The message data */ - public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data = []) + public function __construct(Conversation $conversation, $body, Model $sender, string $type = 'text', array $data = []) { $this->conversation = $conversation; $this->body = $body;