The method toNetGsm() does not exist on Illuminate\Notifications\Notification. Are you sure you never get this type here, but always one of the subclasses?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
31
/** @scrutinizer ignore-call */
32
$message = $notification->toNetGsm($notifiable);
Loading history...
32
33
if (is_string($message)) {
34
$message = NetGsmMessage::create($message);
35
}
36
37
if ($to = $notifiable->routeNotificationFor('netgsm')) {