-
Notifications
You must be signed in to change notification settings - Fork 177
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
Typehint against DomainEventStreamInterface instead of concrete implementation #71
Typehint against DomainEventStreamInterface instead of concrete implementation #71
Conversation
* @param string $aggregateType | ||
* @param string $aggregateIdentifier | ||
* @param DomainEventStream $eventStream | ||
* @param string $aggregateType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please align the variables with each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
We probably should fix this as well sometime, but that's not for this pull 😃: https://github.com/rjkip/broadway/blob/499fcecfbee58062b523a146e058fe54405cfd50/src/Broadway/EventSourcing/MetadataEnrichment/MetadataEnrichingEventStreamDecorator.php#L60 |
Not seeing it, what's there to fix? :o |
As input we now typehint the interface, but the output is always an instance of |
👍 |
ping @qandidate-labs/broadway |
@wjzijderveld Can you create an issue for the other thing? (not sure if it's actually a problem though :) ) As for this pull 👍 . |
Typehint against DomainEventStreamInterface instead of concrete implementation
No description provided.