8000 Merge branch '7.0' into 7.1 · symfony/symfony@6644076 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6644076

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: fix test
2 parents f1723c4 + 4934778 commit 6644076

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Mailer/Tests/Transport/SendmailTransportTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use Symfony\Component\Mailer\Exception\TransportException;
1818
use Symfony\Component\Mailer\SentMessage;
1919
use Symfony\Component\Mailer\Transport\SendmailTransport;
20+
use Symfony\Component\Mailer\Transport\Smtp\SmtpTransport;
2021
use Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream;
21-
use Symfony\Component\Mailer\Transport\TransportInterface;
2222
use Symfony\Component\Mime\Address;
2323
use Symfony\Component\Mime\Email;
2424
use Symfony\Component\Mime\RawMessage;
@@ -130,7 +130,7 @@ public function testDoesNotThrowWhenInteractive()
130130
$transportProperty->setAccessible(true);
131131

132132
// Replace the transport with an anonymous consumer that trigger the stream methods
133-
$transportProperty->setValue($sendmailTransport, new class($transportProperty->getValue($sendmailTransport)->getStream()) implements TransportInterface {
133+
$transportProperty->setValue($sendmailTransport, new class($transportProperty->getValue($sendmailTransport)->getStream()) extends SmtpTransport {
134134
private $stream;
135135

136136
public function __construct(ProcessStream $stream)

src/Symfony/Component/Mailer/Transport/Smtp/Stream/ProcessStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function setCommand(string $command): void
3131
$this->command = $command;
3232
}
3333

34-
public function setInteractive(bool $interactive)
34+
public function setInteractive(bool $interactive): void
3535
{
3636
$this->interactive = $interactive;
3737
}

0 commit comments

Comments
 (0)
0