Skip to content

Commit bc1f113

Browse files
committed
Fixed backward compatibility
Changed delivered() back to whendelivered()
1 parent ceaf3a1 commit bc1f113

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FortySixElksSMS.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FortySixElksSMS extends FortySixElksMedia implements FortySixElksMediaInte
1111
public $type = 'SMS';
1212
protected $flash = 'no';
1313
protected $dry = 'no';
14-
protected $delivered = null;
14+
protected $whendelivered = null;
1515
protected $log = false;
1616

1717
/**
@@ -35,7 +35,7 @@ public function send()
3535
'to' => $this->phone_number,
3636
'flashsms' => $this->flash,
3737
'dryrun' => $this->dry,
38-
'whendelivered' => $this->delivered,
38+
'whendelivered' => $this->whendelivered,
3939
'dontlog' => $this->log,
4040
],
4141

@@ -77,9 +77,9 @@ public function dry()
7777
*
7878
* @return $this
7979
*/
80-
public function delivered($url)
80+
public function whendelivered($url)
8181
{
82-
$this->delivered = $this->payload['delivered'] ?? $url;
82+
$this->whendelivered = $this->payload['whendelivered'] ?? $url;
8383

8484
return $this;
8585
}

0 commit comments

Comments
 (0)