Skip to content

Commit 3f9d840

Browse files
fix(code): fix on constructor argument
Co-Authored-By: Guikingone <guillaume.loulier@hotmail.fr>
1 parent 94e7d20 commit 3f9d840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/injection_types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ this approach allow you to make a service immutable::
261261
{
262262
private $mailer;
263263
264-
public function __construct(MailerInterface $mailer)
264+
public function __construct(?MailerInterface $mailer = null)
265265
{
266266
$this->mailer = $mailer;
267267
}

0 commit comments

Comments
 (0)