Skip to content

Commit b219d55

Browse files
committed
remove PHP 7 entities
1 parent 831a977 commit b219d55

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

src/Exception/RecipientsListEmptyException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
namespace Ddrv\Mailer\Exception;
44

55
use Exception;
6-
use Throwable;
76

87
final class RecipientsListEmptyException extends Exception
98
{
109

11-
public function __construct(Throwable $previous = null)
10+
public function __construct()
1211
{
13-
parent::__construct("recipients list is empty", 1, $previous);
12+
parent::__construct("recipients list is empty", 1);
1413
}
1514
}

src/Mailer.php

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

33
namespace Ddrv\Mailer;
44

5-
use Throwable;
5+
use Exception;
66

77
final class Mailer
88
{
@@ -83,7 +83,7 @@ private function sendMail(Message $message, $personal = false, $priority = 1)
8383
ksort($params);
8484
try {
8585
call_user_func_array($fn, $params);
86-
} catch (Throwable $e) {
86+
} catch (Exception $e) {
8787
}
8888
}
8989
return $this;

src/Transport/FakeTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final class FakeTransport implements TransportInterface
1111
{
1212
/**
13-
* @var callable
13+
* @var Closure
1414
*/
1515
private $logger;
1616

src/Transport/FileTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final class FileTransport implements TransportInterface
1111
{
1212
/**
13-
* @var callable
13+
* @var Closure
1414
*/
1515
private $logger;
1616

src/Transport/SendmailTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class SendmailTransport implements TransportInterface
1616
private $options;
1717

1818
/**
19-
* @var callable
19+
* @var Closure
2020
*/
2121
private $logger;
2222

src/Transport/SmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class SmtpTransport implements TransportInterface
2525
private $email;
2626

2727
/**
28-
* @var callable
28+
* @var Closure
2929
*/
3030
private $logger;
3131

0 commit comments

Comments
 (0)