Skip to content

[Messenger] Fix instance variable declaration #20926

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

MaximePinot
Copy link
Contributor

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.

@javiereguiluz
Copy link
Member

Good catch, thanks Maxime.

@javiereguiluz javiereguiluz merged commit 558c80f into symfony:6.4 Apr 29, 2025
3 checks passed
@MaximePinot MaximePinot deleted the patch-1 branch April 29, 2025 14:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants