Skip to content

Commit 6e8bd77

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent 0a5211d commit 6e8bd77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tests/ZulipTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class ZulipTransportTest extends TransportTestCase
2525
/**
2626
* @return ZulipTransport
2727
*/
28-
public static function createTransport(HttpClientInterface $client = null): TransportInterface
28+
public static function createTransport(?HttpClientInterface $client = null): TransportInterface
2929
{
3030
return (new ZulipTransport('testEmail', 'testToken', 'testChannel', $client ?? new MockHttpClient()))->setHost('test.host');
3131
}

ZulipOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class ZulipOptions implements MessageOptionsInterface
2424
/** @var string|null */
2525
private $recipient;
2626

27-
public function __construct(string $topic = null, string $recipient = null)
27+
public function __construct(?string $topic = null, ?string $recipient = null)
2828
{
2929
$this->topic = $topic;
3030
$this->recipient = $recipient;

ZulipTransport.php

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

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

0 commit comments

Comments
 (0)