Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 558c80f

Browse filesBrowse 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
Copy full SHA for 558c80f

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.