File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class MessageMediaTransport extends AbstractTransport
3333
private string $apiSecret;
3434
private ?string $from;
3535

36-
public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, string $from = null, HttpClientInterface $client = null, EventDiserInterface $diser = null)
36+
public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, ?string $from = null, ?HttpClientInterface $client = null, ?EventDiserInterface $diser = null)
3737
{
3838
$this->apiKey = $apiKey;
3939
$this->apiSecret = $apiSecret;
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
final class MessageMediaTransportTest extends TransportTestCase
2727
{
28-
public static function createTransport(HttpClientInterface $client = null, string $from = null): MessageMediaTransport
28+
public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): MessageMediaTransport
2929
{
3030
return new MessageMediaTransport('apiKey', 'apiSecret', $from, $client ?? new MockHttpClient());
3131
}

0 commit comments

Comments
 (0)