Skip to content

Commit f2ba226

Browse files
Vasilij DuskoVasilij Dusko | CREATION
authored andcommitted
* 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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy