8000 minor #57256 [Mailer] fix test (xabbuh) · symfony/symfony@da377e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit da377e6

Browse files
committed
minor #57256 [Mailer] fix test (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Mailer] fix test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 4651522 fix test
2 parents 6bf4d4d + 4651522 commit da377e6

File tree

2 files changed

+3
-3
lines changed
< 8000 div role="slider" aria-label="Draggable pane splitter" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0" aria-valuetext="Pane width 0 pixels" tabindex="0" class="Box-sc-g0xbh4-0 bHLmSv">

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