Skip to content

Commit f3b258a

Browse files
committed
Remove default value for sender property
1 parent b4a97be commit f3b258a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AppBundle/EventListener/CommentNotificationListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ class CommentNotificationListener
4040
/**
4141
* @var string
4242
*/
43-
private $sender = 'symfony-demo@localhost';
43+
private $sender;
4444

4545
/**
4646
* Constructor.
4747
*
4848
* @param \Swift_Mailer $mailer
4949
* @param UrlGeneratorInterface $urlGenerator
5050
* @param TranslatorInterface $translator
51-
* @param string|null $sender
51+
* @param string $sender
5252
*/
53-
public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $urlGenerator, TranslatorInterface $translator, $sender = null)
53+
public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $urlGenerator, TranslatorInterface $translator, $sender)
5454
{
5555
$this->mailer = $mailer;
5656
$this->urlGenerator = $urlGenerator;
5757
$this->translator = $translator;
58-
$this->sender = $sender ?: $this->sender;
58+
$this->sender = $sender;
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)