From 521ac0157b829599c60d58c91a556f56197d014e Mon Sep 17 00:00:00 2001 From: christophe Date: Fri, 21 Jan 2022 15:15:43 +0100 Subject: [PATCH 1/2] Avoid Deprecated warning when sending message Fix error --- src/Messages/SendMessageCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Messages/SendMessageCommand.php b/src/Messages/SendMessageCommand.php index b62ed21..e87f282 100644 --- a/src/Messages/SendMessageCommand.php +++ b/src/Messages/SendMessageCommand.php @@ -19,7 +19,7 @@ class SendMessageCommand * @param Model $sender The sender identifier * @param string $type The message type */ - public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data) + public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data=null) { $this->conversation = $conversation; $this->body = $body; From 506ec8f0789db4bc32661c8dd049247e3f912739 Mon Sep 17 00:00:00 2001 From: christophe Date: Fri, 21 Jan 2022 15:23:36 +0100 Subject: [PATCH 2/2] Fix styleci --- src/Messages/SendMessageCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Messages/SendMessageCommand.php b/src/Messages/SendMessageCommand.php index e87f282..2cb7b2a 100644 --- a/src/Messages/SendMessageCommand.php +++ b/src/Messages/SendMessageCommand.php @@ -19,7 +19,7 @@ class SendMessageCommand * @param Model $sender The sender identifier * @param string $type The message type */ - public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data=null) + public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data = null) { $this->conversation = $conversation; $this->body = $body;