Skip to content

Commit

Permalink
Convert arguments to string
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmatyus committed Oct 6, 2018
1 parent ae8bc9c commit 37a7933
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/RM/SMSender/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ class Message implements IMessage
/** @var string */
protected $text = '';

public function setFrom(string $from) : IMessage
public function setFrom(string $from = NULL) : IMessage
{
$this->from = $from;
$this->from = (string) $from;
return $this;
}

public function setTo(string $number) : IMessage
public function setTo(string $number = NULL) : IMessage
{
$this->to = $number;
$this->to = (string) $number;
return $this;
}

public function setText(string $text) : IMessage
public function setText(string $text = NULL) : IMessage
{
$this->text = $text;
$this->text = (string) $text;
return $this;
}

Expand Down

0 comments on commit 37a7933

Please sign in to comment.