Skip to content

Commit fcd9fb8

Browse files
committed
Fix PHP 8.1 deprecation: Optional parameter $type declared before required parameter $data musonza#323
1 parent 02dd802 commit fcd9fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Messages/SendMessageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SendMessageCommand
2020
* @param string $type The message type
2121
* @param array $data The message data
2222
*/
23-
public function __construct(Conversation $conversation, $body, Model $sender, $type = 'text', $data = [])
23+
public function __construct(Conversation $conversation, $body, Model $sender, string $type = 'text', array $data = [])
2424
{
2525
$this->conversation = $conversation;
2626
$this->body = $body;

0 commit comments

Comments
 (0)