From 71909a9da51b13b9c122979d5253fad1e1730888 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 --- SendinblueTransport.php | 2 +- Tests/SendinblueTransportTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SendinblueTransport.php b/SendinblueTransport.php index 66844cb..a45b1d0 100644 --- a/SendinblueTransport.php +++ b/SendinblueTransport.php @@ -31,7 +31,7 @@ final class SendinblueTransport extends AbstractTransport private $apiKey; private $sender; - public function __construct(string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $apiKey, string $sender, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->sender = $sender; diff --git a/Tests/SendinblueTransportTest.php b/Tests/SendinblueTransportTest.php index 13dcd1e..aa01a25 100644 --- a/Tests/SendinblueTransportTest.php +++ b/Tests/SendinblueTransportTest.php @@ -27,7 +27,7 @@ final class SendinblueTransportTest extends TransportTestCase /** * @return SendinblueTransport */ - public static function createTransport(HttpClientInterface $client = null): TransportInterface + public static function createTransport(?HttpClientInterface $client = null): TransportInterface { return (new SendinblueTransport('api-key', '0611223344', $client ?? new MockHttpClient()))->setHost('host.test'); }