You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LinkedInTransport.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ protected function doSend(MessageInterface $message): SentMessage
63
63
if (!$messageinstanceof ChatMessage) {
64
64
thrownewLogicException(sprintf('The "%s" transport only supports instances of "%s" (instance of "%s" given).', __CLASS__, ChatMessage::class, \get_class($message)));
65
65
}
66
+
66
67
if ($message->getOptions() && !$message->getOptions() instanceof LinkedInOptions) {
67
68
thrownewLogicException(sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, LinkedInOptions::class));
68
69
}
@@ -87,7 +88,7 @@ protected function doSend(MessageInterface $message): SentMessage
87
88
$result = $response->toArray(false);
88
89
89
90
if (!$result['id']) {
90
-
thrownewTransportException(sprintf('Unable to post the Linkedin message: "%s".', $result['error']), $response);
91
+
thrownewTransportException(sprintf('Unable to post the Linkedin message: "%s".', $result['error']), $response);
0 commit comments