Skip to content

Commit 5f42344

Browse files
Merge branch '6.4' into 7.0
* 6.4: Use typed properties in tests as much as possible
2 parents 7de84ca + c8000b5 commit 5f42344

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

Tests/MailerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function testSendingRawMessages()
4242
public function testSendMessageToBus()
4343
{
4444
$bus = new class() implements MessageBusInterface {
45-
public $messages = [];
46-
public $stamps = [];
45+
public array $messages = [];
46+
public array $stamps = [];
4747

4848
public function dispatch($message, array $stamps = []): Envelope
4949
{

Tests/Transport/NativeTransportFactoryTest.php

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

2323
final class NativeTransportFactoryTest extends TestCase
2424
{
25-
public static $fakeConfiguration = [];
25+
public static array $fakeConfiguration = [];
2626

2727
public static function setUpBeforeClass(): void
2828
{

Tests/Transport/SendmailTransportTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ class SendmailTransportTest extends TestCase
2121
{
2222
private const FAKE_SENDMAIL = __DIR__.'/Fixtures/fake-sendmail.php -t';
2323

24-
/**
25-
* @var string
26-
*/
27-
private $argsPath;
24+
private string $argsPath;
2825

2926
protected function setUp(): void
3027
{

Tests/TransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static function fromWrongStringProvider(): iterable
102102

103103
class DummyTransport implements Transport\TransportInterface
104104
{
105-
private $host;
105+
private string $host;
106106

107107
public function __construct(string $host)
108108
{

0 commit comments

Comments
 (0)