-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adjust KafkaConsumerMessage to always return an array for headers #63
Comments
@antonkomarev not everybody leverages the usage of headers, so they might be |
Okay, but you are casting them to array, why KafkaConsumerMessage headers param is nullable then? As for me empty array means that there is no headers as well as |
@antonkomarev is a good point, i don't remember anymore why we cast it. Maybe we always wanted to return an |
@antonkomarev sry for the delay, so i definitely think, this was an oversight on our side. I agree that we should fix that, but since either way (adjusting the interface or removing the array cast) will break the behaviour, we'll need to put it into the next major. |
You are right, that's BC break. Will look forward to it! |
Thanks again for that input btw 🙏 |
Jobcloud\Kafka\Message\KafkaConsumerMessage
right now has this signature:Is there any reason why headers is nullable? What are the use cases for null value?
I see that headers are casting to array right now:
The text was updated successfully, but these errors were encountered: