Skip to content

Commit

Permalink
Fix PHP 8.1 deprecation: Optional parameter $type declared before req…
Browse files Browse the repository at this point in the history
…uired parameter $data musonza#323
  • Loading branch information
Saifallak committed May 26, 2024
1 parent 02dd802 commit fcd9fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messages/SendMessageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fcd9fb8

Please sign in to comment.