Skip to content

Conversation

@HypeMC
Copy link
Member

@HypeMC HypeMC commented Oct 19, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Noticed while working on #61843.

There's no reason for the event to be dispatched inside the loop anymore:

  1. The event was originally dispatched outside the loop.
  2. It was later moved inside the loop because of the retry mechanism.
  3. The retry mechanism was later extracted, so there's no longer a need for the event to be dispatched inside the loop.

@nicolas-grekas
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit bcb1ba5 into symfony:7.4 Oct 20, 2025
10 of 12 checks passed
@HypeMC HypeMC deleted the messenger-simplify-code branch October 20, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants