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.
1 parent bcab129 commit 21527ffCopy full SHA for 21527ff
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