Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da377e6

Browse filesBrowse 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
Copy full SHA for da377e6

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Tests/Transport/SendmailTransportTest.php
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Transport/Smtp/Stream/ProcessStream.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.