Skip to content

Commit 00fb886

Browse files
authored
Update Textlocal.php
1 parent 8c62761 commit 00fb886

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Textlocal.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ class Textlocal
4242
*
4343
* @param $username
4444
* @param $hash
45+
* @param string|null $apiKey
4546
*/
46-
public function __construct($username, $hash, $apiKey = false)
47+
public function __construct($username, $hash, $apiKey = null)
4748
{
4849
$this->username = $username;
4950
$this->hash = $hash;
50-
if ($apiKey) {
51+
if (! is_null($apiKey)) {
5152
$this->apiKey = $apiKey;
5253
}
5354

@@ -170,7 +171,7 @@ public function getLastRequest()
170171
* @param $message
171172
* @param $sender
172173
* @param null $sched
173-
* @param false $test
174+
* @param bool $test
174175
* @param null $receiptURL
175176
* @param null $custom
176177
* @param false $optouts
@@ -180,7 +181,7 @@ public function getLastRequest()
180181
*
181182
* @return array|mixed
182183
*/
183-
public function sendSms($numbers, $message, $sender, $sched = null, $test = false, $receiptURL = null, $custom = null, $optouts = false, $simpleReplyService = false)
184+
public function sendSms($numbers, $message, $sender, $sched = null, bool $test = false, $receiptURL = null, $custom = null, $optouts = false, $simpleReplyService = false)
184185
{
185186
if (! is_array($numbers)) {
186187
throw new Exception('Invalid $numbers format. Must be an array');

0 commit comments

Comments
 (0)