Skip to content

Commit 032ac56

Browse files
Merge branch '7.0' into 7.1
* 7.0: List CS fix in .git-blame-ignore-revs 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 88f5d8b + 492b27c commit 032ac56

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/ZulipTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
final class ZulipTransportTest extends TransportTestCase
2323
{
24-
public static function createTransport(HttpClientInterface $client = null): ZulipTransport
24+
public static function createTransport(?HttpClientInterface $client = null): ZulipTransport
2525
{
2626
return (new ZulipTransport('testEmail', 'testToken', 'testChannel', $client ?? new MockHttpClient()))->setHost('test.host');
2727
}

ZulipOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class ZulipOptions implements MessageOptionsInterface
2121
private ?string $topic;
2222
private ?string $recipient;
2323

24-
public function __construct(string $topic = null, string $recipient = null)
24+
public function __construct(?string $topic = null, ?string $recipient = null)
2525
{
2626
$this->topic = $topic;
2727
$this->recipient = $recipient;

ZulipTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function __construct(
3131
private string $email,
3232
#[\SensitiveParameter] private string $token,
3333
private string $channel,
34-
HttpClientInterface $client = null,
35-
EventDispatcherInterface $dispatcher = null,
34+
?HttpClientInterface $client = null,
35+
?EventDispatcherInterface $dispatcher = null,
3636
)
3737
{
3838

0 commit comments

Comments
 (0)