Skip to content

Commit 50c5822

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent f672870 commit 50c5822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GatewayApiTransport.php

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

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

Tests/GatewayApiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class GatewayApiTransportTest extends TransportTestCase
3131
/**
3232
* @return GatewayApiTransport
3333
*/
34-
public static function createTransport(HttpClientInterface $client = null): TransportInterface
34+
public static function createTransport(?HttpClientInterface $client = null): TransportInterface
3535
{
3636
return new GatewayApiTransport('authtoken', 'Symfony', $client ?? new MockHttpClient());
3737
}

0 commit comments

Comments
 (0)