Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15d88e9

Browse files
Merge branch '6.4' into 7.0
* 6.4: Fix implicitly-required parameters minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2 parents 1d87e62 + 14da33d commit 15d88e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SmsapiTransport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class SmsapiTransport extends AbstractTransport
3434
private bool $fast = false;
3535
private bool $test = false;
3636

37-
public function __construct(#[\SensitiveParameter] string $authToken, string $from = '', HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(#[\SensitiveParameter] string $authToken, string $from = '', ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null)
3838
{
3939
$this->authToken = $authToken;
4040
$this->from = $from;

Tests/SmsapiTransportTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
final class SmsapiTransportTest extends TransportTestCase
2525
{
26-
public static function createTransport(HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport
26+
public static function createTransport(?HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport
2727
{
2828
return (new SmsapiTransport('testToken', $from, $client ?? new MockHttpClient()))->setHost('test.host')->setFast($fast)->setTest($test);
2929
}

0 commit comments

Comments
 (0)