diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ecb6293..fc690f2e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-backup` will be documented in this file. +### 3.0.1 - 2016-03-08 + +- fixed bug in the mail and slack notification senders + ### 3.0.0 - 2016-03-08 Complete rewrite with lots of new features: diff --git a/src/Notifications/Senders/Mail.php b/src/Notifications/Senders/Mail.php index 4885bd3f..487aa592 100644 --- a/src/Notifications/Senders/Mail.php +++ b/src/Notifications/Senders/Mail.php @@ -2,22 +2,24 @@ namespace Spatie\Backup\Notifications\Senders; +use Illuminate\Contracts\Config\Repository; +use Illuminate\Contracts\Mail\Mailer; use Illuminate\Mail\Message; use Spatie\Backup\Notifications\BaseSender; class Mail extends BaseSender { - /** @var \Illuminate\Contracts\Mail\Mailer */ + /** @var Mailer */ protected $mailer; /** @var array */ protected $config; /** - * @param \Illuminate\Contracts\Mail\Mailer $mailer - * @param \Illuminate\Contracts\Config\Repository $config + * @param Mailer $mailer + * @param Repository $config */ - public function __construct($mailer, $config) + public function __construct(Mailer $mailer, Repository $config) { $this->config = $config->get('laravel-backup.notifications.mail'); diff --git a/src/Notifications/Senders/Slack.php b/src/Notifications/Senders/Slack.php index fefe812f..6921aa1d 100644 --- a/src/Notifications/Senders/Slack.php +++ b/src/Notifications/Senders/Slack.php @@ -2,6 +2,8 @@ namespace Spatie\Backup\Notifications\Senders; +use Illuminate\Contracts\Config\Repository; +use Maknz\Slack\Client; use Spatie\Backup\Notifications\BaseSender; class Slack extends BaseSender @@ -14,9 +16,9 @@ class Slack extends BaseSender /** * @param \Maknz\Slack\Client $client - * @param \Illuminate\Contracts\Config\Repository $config + * @param Repository $config */ - public function __construct($client, $config) + public function __construct(Client $client, Repository $config) { $this->config = $config->get('laravel-backup.notifications.slack');