-
Notifications
You must be signed in to change notification settings - Fork 56
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
Resolve #107 - Correctly detect event name in OnEventStrategy #108
Conversation
This change fixes an issue with `OnEventStrategy` not correctly determining the event name if a custom event returns a message name other than its own class name through the `messageName()` method.
Thank's for the PR. First, there are some php-cs issues, see travis build. Any ideas how to solve this? Perhaps a distinct OnEventStrategy is needed for this case. /cc @codeliner |
@prolic I wasn't really aiming for a completely custom message name here, I used that string only for testing purposes. Just pushed a follow-up which fixes the CS issue and contains a more realistic message name. |
@robertlemke My concern is not about if the message name is realistic or not, but that we need to make assumptions about it's name, that are not validated. |
@prolic hmm, is this related to this bugfix then? If so, then I probably still don't understand what you mean. For me, this PR was just about fixing the missing brackets in the ternary operator. |
No it's not related to your bugfix. I need to clarify with @codeliner, as i
|
Allright ;-) |
@robertlemke @prolic I agree. The current implementation could lead to unexpected errors but is a separate issue to solve. I think this PR can be merged, right? |
Resolve #107 - Correctly detect event name in OnEventStrategy
…dleCommandStrategy based on: #108
This change fixes an issue with
OnEventStrategy
not correctlydetermining the event name if a custom event returns a message name
other than its own class name through the
messageName()
method.