fixed return type RdKafka\ConsumerTopic::consume()

rd-kafka library implements RdKafka\ConsumerTopic::consume() method as do consume till Kafka service return value is not empty. Need to update return type.
This commit is contained in:
Maksym Storchak 2022-10-13 23:24:38 +03:00 committed by DmitryTronin
parent 59d0a0c894
commit 878dd7f909
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class ConsumerTopic extends Topic
* @param int $partition
* @param int $timeout_ms
*
* @return Message
* @return Message|null
*/
public function consume($partition, $timeout_ms) {}