Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed May 31, 2024
1 parent 928a8d6 commit 085b7fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/Transport/SendmailTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use Symfony\Component\Mailer\Exception\TransportException;
use Symfony\Component\Mailer\SentMessage;
use Symfony\Component\Mailer\Transport\SendmailTransport;
use Symfony\Component\Mailer\Transport\Smtp\SmtpTransport;
use Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream;
use Symfony\Component\Mailer\Transport\TransportInterface;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
use Symfony\Component\Mime\RawMessage;
Expand Down Expand Up @@ -130,7 +130,7 @@ public function testDoesNotThrowWhenInteractive()
$transportProperty->setAccessible(true);

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

public function __construct(ProcessStream $stream)
Expand Down
2 changes: 1 addition & 1 deletion Transport/Smtp/Stream/ProcessStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setCommand(string $command): void
$this->command = $command;
}

public function setInteractive(bool $interactive)
public function setInteractive(bool $interactive): void
{
$this->interactive = $interactive;
}
Expand Down

0 comments on commit 085b7fd

Please sign in to comment.