Skip to content

Commit 558c80f

Browse files
committed
minor #20926 [Messenger] Fix instance variable declaration (MaximePinot)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] Fix instance variable declaration Add missing `private` keyword to use constructor property promotion. Otherwise, the call to `$this->em` in the `__invoke` method is invalid, as `$em` is considered a constructor parameter only. Commits ------- 34df2c8 [Messenger] Fix instance variable declaration
2 parents 7b1c21d + 34df2c8 commit 558c80f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messenger.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ using the ``DispatchAfterCurrentBusMiddleware`` and adding a
25482548
{
25492549
public function __construct(
25502550
private MailerInterface $mailer,
2551-
EntityManagerInterface $em,
2551+
private EntityManagerInterface $em,
25522552
) {
25532553
}
25542554

0 commit comments

Comments
 (0)