Skip to content

Commit f1f64af

Browse files
Merge branch '5.4' into 6.3
* 5.4: 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
1 parent 7b8c9ca commit f1f64af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ChatworkTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChatworkTransport extends AbstractTransport
3131
private string $apiToken;
3232
private string $roomId;
3333

34-
public function __construct(#[\SensitiveParameter] string $apiToken, string $roomId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
34+
public function __construct(#[\SensitiveParameter] string $apiToken, string $roomId, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null)
3535
{
3636
$this->apiToken = $apiToken;
3737
$this->roomId = $roomId;

Tests/ChatworkTransportTest.php

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

2525
class ChatworkTransportTest extends TransportTestCase
2626
{
27-
public static function createTransport(HttpClientInterface $client = null): TransportInterface
27+
public static function createTransport(?HttpClientInterface $client = null): TransportInterface
2828
{
2929
return (new ChatworkTransport('testToken', 'testRoomId', $client ?? new MockHttpClient()))->setHost('host.test');
3030
}

0 commit comments

Comments
 (0)