Skip to content

Commit f2ba226

Browse files
Vasilij DuskoVasilij Dusko | CREATION
Vasilij Dusko
authored and
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - bug fix
1 parent b075c0e commit f2ba226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public function supports(MessageInterface $message): bool
103103
return $message instanceof SmsMessage && $this->phone === str_replace('+', '', $message->getPhone());
104104
}
105105

106-
protected function doSend(MessageInterface $message): void
106+
protected function doSend(MessageInterface $message): SentMessage
107107
{
108108
if (!$message instanceof SmsMessage) {
109-
throw new LogicException(sprintf('The "%s" transport only supports instances of "%s" (instance of "%s" given).', __CLASS__, SmsMessage::class, \get_class($message)));
109+
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
110110
}
111111

112112
$this->message = $message;

0 commit comments

Comments
 (0)