Skip to content

Commit d358283

Browse files
Merge pull request #152 from sergio-agosti/master
Fix use of $params in facade message method
2 parents 0fd74d5 + 5922d27 commit d358283

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Twilio.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ public function __construct($sid, $token, $from, $sslVerify = true)
5757
*/
5858
public function message($to, $message, $mediaUrls = null, array $params = [])
5959
{
60-
$options['body'] = $message;
60+
$params['body'] = $message;
6161

62-
if (!isset($options['from'])) {
63-
$options['from'] = $this->from;
62+
if (!isset($params['from'])) {
63+
$params['from'] = $this->from;
6464
}
6565

6666
if (!empty($medialUrls)) {
67-
$options['mediaUrl'] = $mediaUrls;
67+
$params['mediaUrl'] = $mediaUrls;
6868
}
6969

70-
return $this->getTwilio()->messages->create($to, $options);
70+
return $this->getTwilio()->messages->create($to, $params);
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)