Skip to content

Commit 6032f4e

Browse files
committed
Initiate form_param into class before use
1 parent 8656194 commit 6032f4e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/FortySixElksSMS.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class FortySixElksSMS extends FortySixElksMedia implements FortySixElksMediaInte
1515
*/
1616
public function __construct()
1717
{
18+
$this->form_params = [];
19+
1820
return parent::__construct();
1921
}
2022

@@ -28,9 +30,9 @@ public function send()
2830
'form_params' => array_merge(
2931
$this->form_params,
3032
[
31-
'from' => $this->from,
32-
'to' => $this->phone_number,
33-
'message' => $this->getContent(),
33+
'from' => $this->from,
34+
'to' => $this->phone_number,
35+
'message' => $this->getContent(),
3436
]
3537
),
3638
]);

0 commit comments

Comments
 (0)