Skip to content

Commit 3197616

Browse files
committed
Fix PHP 8.1 deprecation: Optional parameter $type declared before required parameter $data musonza#323
1 parent 3a11805 commit 3197616

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Messages/SendMessageCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class SendMessageCommand
1818
* @param string $body The message body
1919
* @param Model $sender The sender identifier
2020
* @param string $type The message type
21+
* @param array $data The message data
2122
*/
22-
public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data)
23+
public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data = [])
2324
{
2425
$this->conversation = $conversation;
2526
$this->body = $body;

0 commit comments

Comments
 (0)