From b84e479425e17b42ac2f432d8044a36a6da07050 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 23 Jan 2024 14:51:25 +0100 Subject: [PATCH] Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value --- Transport/MandrillApiTransport.php | 2 +- Transport/MandrillHeadersTrait.php | 2 +- Transport/MandrillHttpTransport.php | 2 +- Transport/MandrillSmtpTransport.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Transport/MandrillApiTransport.php b/Transport/MandrillApiTransport.php index 474ff10..1d0dcbb 100644 --- a/Transport/MandrillApiTransport.php +++ b/Transport/MandrillApiTransport.php @@ -34,7 +34,7 @@ class MandrillApiTransport extends AbstractApiTransport private $key; - public function __construct(string $key, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null) + public function __construct(string $key, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null) { $this->key = $key; diff --git a/Transport/MandrillHeadersTrait.php b/Transport/MandrillHeadersTrait.php index 73c3dbd..faa7e0b 100644 --- a/Transport/MandrillHeadersTrait.php +++ b/Transport/MandrillHeadersTrait.php @@ -23,7 +23,7 @@ */ trait MandrillHeadersTrait { - public function send(RawMessage $message, Envelope $envelope = null): ?SentMessage + public function send(RawMessage $message, ?Envelope $envelope = null): ?SentMessage { if ($message instanceof Message) { $this->addMandrillHeaders($message); diff --git a/Transport/MandrillHttpTransport.php b/Transport/MandrillHttpTransport.php index f6edcdd..f9c6142 100644 --- a/Transport/MandrillHttpTransport.php +++ b/Transport/MandrillHttpTransport.php @@ -32,7 +32,7 @@ class MandrillHttpTransport extends AbstractHttpTransport private const HOST = 'mandrillapp.com'; private $key; - public function __construct(string $key, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null) + public function __construct(string $key, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null) { $this->key = $key; diff --git a/Transport/MandrillSmtpTransport.php b/Transport/MandrillSmtpTransport.php index ef18b5d..8df0653 100644 --- a/Transport/MandrillSmtpTransport.php +++ b/Transport/MandrillSmtpTransport.php @@ -22,7 +22,7 @@ class MandrillSmtpTransport extends EsmtpTransport { use MandrillHeadersTrait; - public function __construct(string $username, string $password, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null) + public function __construct(string $username, string $password, ?EventDispatcherInterface $dispatcher = null, ?LoggerInterface $logger = null) { parent::__construct('smtp.mandrillapp.com', 587, false, $dispatcher, $logger);