diff --git a/app/Notifications/Incident/NewIncidentNotification.php b/app/Notifications/Incident/NewIncidentNotification.php index d1ddc601..ac56c9de 100644 --- a/app/Notifications/Incident/NewIncidentNotification.php +++ b/app/Notifications/Incident/NewIncidentNotification.php @@ -127,7 +127,7 @@ class NewIncidentNotification extends Notification return (new SlackMessage()) ->$status() ->content($content) - ->attachment(function ($attachment) use ($notifiable) { + ->attachment(function ($attachment) { $attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name])) ->timestamp($this->incident->getWrappedObject()->occurred_at) ->fields(array_filter([ diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index c9b5a000..6c88b403 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -134,7 +134,7 @@ class IncidentUpdatedNotification extends Notification return (new SlackMessage()) ->$status() ->content($content) - ->attachment(function ($attachment) use ($content, $notifiable) { + ->attachment(function ($attachment) use ($notifiable) { $attachment->title(trans('notifications.incident.update.slack.title', [ 'name' => $this->update->incident->name, 'new_status' => $this->update->human_status,