after upgrading the rdkafka lib to 6.0.0 , the lib throws an error when trying to decode a message from kafka without headers or keys.
KafkaReceiver.php line 64:
Typed property RdKafka\Message::$headers must not be accessed before initialization
The reason is that with version < 6.0.0 the headers and key property was initalized as null in the message. In the new version, the fields are missing if not set.
I just saw that i accidentally locked the version to 0.14.0 and didnt get the updates from 0.15 where headers was initalized as empty array when not existant.
Hi,
after upgrading the rdkafka lib to 6.0.0 , the lib throws an error when trying to decode a message from kafka without headers or keys.
The reason is that with version < 6.0.0 the headers and key property was initalized as null in the message. In the new version, the fields are missing if not set.
Example message with 6.0.0: