Skip to content

Commit 45d2e5d

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent b44a53d commit 45d2e5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SmsapiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class SmsapiTransport extends AbstractTransport
3232
private $authToken;
3333
private $from;
3434

35-
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
35+
public function __construct(string $authToken, string $from, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null)
3636
{
3737
$this->authToken = $authToken;
3838
$this->from = $from;

Tests/SmsapiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class SmsapiTransportTest extends TransportTestCase
2727
/**
2828
* @return SmsapiTransport
2929
*/
30-
public static function createTransport(HttpClientInterface $client = null): TransportInterface
30+
public static function createTransport(?HttpClientInterface $client = null): TransportInterface
3131
{
3232
return (new SmsapiTransport('testToken', 'testFrom', $client ?? new MockHttpClient()))->setHost('test.host');
3333
}

0 commit comments

Comments
 (0)