We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15b93cc + 21527ff commit 9c850a2Copy full SHA for 9c850a2
src/TwitterChannel.php
@@ -49,7 +49,7 @@ public function send($notifiable, Notification $notification)
49
*/
50
private function changeTwitterSettingsIfNeeded($notifiable)
51
{
52
- if ($twitterSettings = $notifiable->routeNotificationFor('twitter')) {
+ if (method_exists($notifiable, 'routeNotificationFor') && $twitterSettings = $notifiable->routeNotificationFor('twitter')) {
53
$this->twitter = new TwitterOAuth($twitterSettings[0], $twitterSettings[1], $twitterSettings[2],
54
$twitterSettings[3]);
55
}
0 commit comments