Skip to content

Commit

Permalink
Fixed bug with sending to groups
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hanson committed Jun 30, 2016
1 parent e8e47bb commit df67817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function push($notification, $notifiable)
}

foreach ($notifiable as $toBeNotified) {
if ( ! $toBeNotified instanceof Notifiable) {
if ( ! $toBeNotified instanceof Notifiable && !$tobeNotified instanceof NotifiableGroup) {
throw new NotNotifiableException("The notifiable members must implement the notifiable interface.");
}
}
Expand All @@ -75,7 +75,7 @@ public function push($notification, $notifiable)
* @param string|array $notification
* @param Notifiable $notifiable
*/
protected function pushNotification($notification, Notifiable $notifiable)
protected function pushNotification($notification, $notifiable)
{
if ($notifiable instanceof NotifiableGroup) {
foreach ($notifiable->getGroup() as $toBeNotified) {
Expand Down

0 comments on commit df67817

Please sign in to comment.