Skip to content

Commit ae04bfe

Browse files
CS fix
1 parent 1e4a2ec commit ae04bfe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Exception/IncompleteDsnException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class IncompleteDsnException extends InvalidArgumentException
2020
{
2121
private $dsn;
2222

23-
public function __construct(string $message, string $dsn = null, ?\Throwable $previous = null)
23+
public function __construct(string $message, string $dsn = null, \Throwable $previous = null)
2424
{
2525
$this->dsn = $dsn;
2626
if ($dsn) {

Tests/TransportTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class TransportTestCase extends TestCase
2727
protected const CUSTOM_HOST = 'host.test';
2828
protected const CUSTOM_PORT = 42;
2929

30-
abstract public function createTransport(?HttpClientInterface $client = null): TransportInterface;
30+
abstract public function createTransport(HttpClientInterface $client = null): TransportInterface;
3131

3232
/**
3333
* @return iterable<array{0: string, 1: TransportInterface}>
@@ -55,7 +55,7 @@ public function testToString(string $expected, TransportInterface $transport)
5555
/**
5656
* @dataProvider supportedMessagesProvider
5757
*/
58-
public function testSupportedMessages(MessageInterface $message, ?TransportInterface $transport = null)
58+
public function testSupportedMessages(MessageInterface $message, TransportInterface $transport = null)
5959
{
6060
if (null === $transport) {
6161
$transport = $this->createTransport();
@@ -67,7 +67,7 @@ public function testSupportedMessages(MessageInterface $message, ?TransportInter
6767
/**
6868
* @dataProvider unsupportedMessagesProvider
6969
*/
70-
public function testUnsupportedMessages(MessageInterface $message, ?TransportInterface $transport = null)
70+
public function testUnsupportedMessages(MessageInterface $message, TransportInterface $transport = null)
7171
{
7272
if (null === $transport) {
7373
$transport = $this->createTransport();
@@ -79,7 +79,7 @@ public function testUnsupportedMessages(MessageInterface $message, ?TransportInt
7979
/**
8080
* @dataProvider unsupportedMessagesProvider
8181
*/
82-
public function testUnsupportedMessagesTrowLogicExceptionWhenSend(MessageInterface $message, ?TransportInterface $transport = null)
82+
public function testUnsupportedMessagesTrowLogicExceptionWhenSend(MessageInterface $message, TransportInterface $transport = null)
8383
{
8484
if (null === $transport) {
8585
$transport = $this->createTransport();

Transport/Dsn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class Dsn
2929
private $path;
3030
private $dsn;
3131

32-
public function __construct(string $scheme, string $host, ?string $user = null, ?string $password = null, ?int $port = null, array $options = [], ?string $path = null)
32+
public function __construct(string $scheme, string $host, string $user = null, string $password = null, int $port = null, array $options = [], string $path = null)
3333
{
3434
$this->scheme = $scheme;
3535
$this->host = $host;

0 commit comments

Comments
 (0)