Skip to content

[symfony] allow 2nd dynamic arg in SingleArgEventDispatchRule - #310

Merged
TomasVotruba merged 1 commit into
mainfrom
allow-dynamic-event-name-dispatch
Sep 23, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
allow-dynamic-event-name-dispatch

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Allow dispatch($event, $name) with 2 args when the 2nd arg is dynamic (e.g. a variable event name).

The rule still reports a literal string 2nd arg like dispatch('one', 'two').

@TomasVotruba
TomasVotruba merged commit 4b59dad into main Sep 23, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the allow-dynamic-event-name-dispatch branch September 23, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant