-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Workflow] Fix eventsToDispatch parameter setup for StateMachine #44510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workflow] Fix eventsToDispatch parameter setup for StateMachine #44510
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
I have found out that the lowest branch where this fix can be applied is 5.2. Should I close this PR and create the new one for the 5.2 branch? |
5.2 is not maintained anymore, so 5.3 is probably the lowest maintained branch where this applies. |
ce8e74e
to
ca38501
Compare
Thank you @chalasr! Done. Could you review it again? |
Thank you @goodjinny. |
After updating to 5.4.2 this update prevented the state machine to work at all, broke in our integration tests. Got to revert to 5.4.0 until a fix is there I guess. |
Hello @DoctorBryson, please create a new issue with a reproducer, thanks. |
Using
state_machine
type of the workflow in the project have mentioned that workflow events still propagated withevents_to_dispatch: []
parameter. But this bug does not appear forworkflow
type.Current pull request fixes that bug by adding $eventsToDispatch parameter initialization for StateMachine class.
Before fixing (

state_machine
withevents_to_dispatch: []
):After fixing (

state_machine
withevents_to_dispatch: []
);