Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2ba226

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

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.