Skip to content

Commit ad012dd

Browse files
committed
fix bug in senders
1 parent 2ce7841 commit ad012dd

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-backup` will be documented in this file.
44

5+
### 3.0.1 - 2016-03-08
6+
7+
- fixed bug in the mail and slack notification senders
8+
59
### 3.0.0 - 2016-03-08
610

711
Complete rewrite with lots of new features:

src/Notifications/Senders/Mail.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22

33
namespace Spatie\Backup\Notifications\Senders;
44

5+
use Illuminate\Contracts\Config\Repository;
6+
use Illuminate\Contracts\Mail\Mailer;
57
use Illuminate\Mail\Message;
68
use Spatie\Backup\Notifications\BaseSender;
79

810
class Mail extends BaseSender
911
{
10-
/** @var \Illuminate\Contracts\Mail\Mailer */
12+
/** @var Mailer */
1113
protected $mailer;
1214

1315
/** @var array */
1416
protected $config;
1517

1618
/**
17-
* @param \Illuminate\Contracts\Mail\Mailer $mailer
18-
* @param \Illuminate\Contracts\Config\Repository $config
19+
* @param Mailer $mailer
20+
* @param Repository $config
1921
*/
20-
public function __construct($mailer, $config)
22+
public function __construct(Mailer $mailer, Repository $config)
2123
{
2224
$this->config = $config->get('laravel-backup.notifications.mail');
2325

src/Notifications/Senders/Slack.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Spatie\Backup\Notifications\Senders;
44

5+
use Illuminate\Contracts\Config\Repository;
6+
use Maknz\Slack\Client;
57
use Spatie\Backup\Notifications\BaseSender;
68

79
class Slack extends BaseSender
@@ -14,9 +16,9 @@ class Slack extends BaseSender
1416

1517
/**
1618
* @param \Maknz\Slack\Client $client
17-
* @param \Illuminate\Contracts\Config\Repository $config
19+
* @param Repository $config
1820
*/
19-
public function __construct($client, $config)
21+
public function __construct(Client $client, Repository $config)
2022
{
2123
$this->config = $config->get('laravel-backup.notifications.slack');
2224

0 commit comments

Comments
 (0)