Skip to content

Commit f38fde2

Browse files
committed
fix code style
1 parent 5ffd2af commit f38fde2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Test/TransportFactoryTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testSupports(Dsn $dsn, bool $supports)
6464
/**
6565
* @dataProvider createProvider
6666
*/
67-
public function testCreate(Dsn $dsn, TransportInterface $transport): void
67+
public function testCreate(Dsn $dsn, TransportInterface $transport)
6868
{
6969
$factory = $this->getFactory();
7070

@@ -77,7 +77,7 @@ public function testCreate(Dsn $dsn, TransportInterface $transport): void
7777
/**
7878
* @dataProvider unsupportedSchemeProvider
7979
*/
80-
public function testUnsupportedSchemeException(Dsn $dsn, string $message = null): void
80+
public function testUnsupportedSchemeException(Dsn $dsn, string $message = null)
8181
{
8282
$factory = $this->getFactory();
8383

@@ -92,7 +92,7 @@ public function testUnsupportedSchemeException(Dsn $dsn, string $message = null)
9292
/**
9393
* @dataProvider incompleteDsnProvider
9494
*/
95-
public function testIncompleteDsnException(Dsn $dsn): void
95+
public function testIncompleteDsnException(Dsn $dsn)
9696
{
9797
$factory = $this->getFactory();
9898

Tests/Transport/DsnTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testGetOption()
3838
/**
3939
* @dataProvider invalidDsnProvider
4040
*/
41-
public function testInvalidDsn(string $dsn, string $exceptionMessage): void
41+
public function testInvalidDsn(string $dsn, string $exceptionMessage)
4242
{
4343
$this->expectException(InvalidArgumentException::class);
4444
$this->expectExceptionMessage($exceptionMessage);

Tests/TransportTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function fromStringProvider(): iterable
6363
/**
6464
* @dataProvider fromDsnProvider
6565
*/
66-
public function testFromDsn(string $dsn, TransportInterface $transport): void
66+
public function testFromDsn(string $dsn, TransportInterface $transport)
6767
{
6868
$this->assertEquals($transport, Transport::fromDsn($dsn));
6969
}
@@ -79,7 +79,7 @@ public function fromDsnProvider(): iterable
7979
/**
8080
* @dataProvider fromWrongStringProvider
8181
*/
82-
public function testFromWrongString(string $dsn, string $error): void
82+
public function testFromWrongString(string $dsn, string $error)
8383
{
8484
$transportFactory = new Transport([new DummyTransportFactory()]);
8585

@@ -116,7 +116,7 @@ public function send(RawMessage $message, Envelope $envelope = null): ?SentMessa
116116

117117
public function __toString(): string
118118
{
119-
return sprintf('dummy://local');
119+
return 'dummy://local';
120120
}
121121
}
122122

0 commit comments

Comments
 (0)