Skip to content

Commit e767cf7

Browse files
committed
Cleanup
1 parent e2c927a commit e767cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Channels/WebSmsChannel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
use Illuminate\Notifications\Notification;
7+
use Illuminate\Support\Arr;
78
use WebSms\Client;
89
use WebSms\Response;
910
use WebSms\TextMessage;
@@ -50,9 +51,8 @@ public function send($notifiable, Notification $notification)
5051
if ($routeTo) {
5152
$to = $routeTo;
5253
}
53-
if (!is_array($to)) {
54-
$to = [$to];
55-
}
54+
55+
$to = Arr::wrap($to);
5656

5757
$message = $notification->toWebsms($notifiable);
5858
if (is_string($message)) {

0 commit comments

Comments
 (0)