Skip to content

Commit

Permalink
Merge pull request #25 from francoism90/main
Browse files Browse the repository at this point in the history
Fix notification fake arg
  • Loading branch information
freekmurze authored Dec 11, 2024
2 parents 3ab6960 + afbb19f commit 5188da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Notifications/MailcoachMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function faking(bool $value): self
{
$this->fake = $value;

$this->withSymfonyMessage(function (Email $email) {
$fakeHeader = new FakeHeader($mailer);
$this->withSymfonyMessage(function (Email $email) use ($value) {
$fakeHeader = new FakeHeader($value);

if ($email->getHeaders()->has($fakeHeader->getName())) {
$email->getHeaders()->remove($fakeHeader->getName());
Expand Down

0 comments on commit 5188da6

Please sign in to comment.