Skip to content

Commit 0cff326

Browse files
raphael-geffroyfabpot
authored andcommitted
[Notifier] unsupported options exception
1 parent e1aad34 commit 0cff326

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LinkedInTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Component\Notifier\Bridge\LinkedIn;
1313

1414
use Symfony\Component\Notifier\Bridge\LinkedIn\Share\AuthorShare;
15-
use Symfony\Component\Notifier\Exception\LogicException;
1615
use Symfony\Component\Notifier\Exception\TransportException;
1716
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
17+
use Symfony\Component\Notifier\Exception\UnsupportedOptionsException;
1818
use Symfony\Component\Notifier\Message\ChatMessage;
1919
use Symfony\Component\Notifier\Message\MessageInterface;
2020
use Symfony\Component\Notifier\Message\SentMessage;
@@ -61,7 +61,7 @@ protected function doSend(MessageInterface $message): SentMessage
6161
}
6262

6363
if (($options = $message->getOptions()) && !$options instanceof LinkedInOptions) {
64-
throw new LogicException(\sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, LinkedInOptions::class));
64+
throw new UnsupportedOptionsException(__CLASS__, LinkedInOptions::class, $options);
6565
}
6666

6767
if (!$options && $notification = $message->getNotification()) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=8.2",
2020
"symfony/http-client": "^6.4|^7.0",
21-
"symfony/notifier": "^7.2"
21+
"symfony/notifier": "^7.3"
2222
},
2323
"autoload": {
2424
"psr-4": { "Symfony\\Component\\Notifier\\Bridge\\LinkedIn\\": "" },

0 commit comments

Comments
 (0)