Skip to content

Commit 77cf825

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent fc93ad4 commit 77cf825

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SmscTransport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class SmscTransport extends AbstractTransport
3434
private $password;
3535
private $from;
3636

37-
public function __construct(string $login, string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(string $login, string $password, string $from, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null)
3838
{
3939
$this->login = $login;
4040
$this->password = $password;

Tests/SmscTransportTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
final class SmscTransportTest extends TransportTestCase
2424
{
25-
public static function createTransport(HttpClientInterface $client = null): TransportInterface
25+
public static function createTransport(?HttpClientInterface $client = null): TransportInterface
2626
{
2727
return new SmscTransport('login', 'password', 'MyApp', $client ?? new MockHttpClient());
2828
}

0 commit comments

Comments
 (0)