Skip to content

Conversation

@tony-sol
Copy link
Contributor

Actualize ConsumerTopic, KafkaConsumer, KafkaConsumerTopic, Message due to original stubs from https://github.com/arnaud-lb/php-rdkafka and doc from https://arnaud.le-blanc.net/php-rdkafka-doc/phpdoc/book.rdkafka.html

Copy link
Owner

@kwn kwn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for an update. Just left a few comments. Could you please address them in a spare time?

* @param string $topic_name
* @param TopicConf $topic_conf
*
* @return Topic
Copy link
Owner

@kwn kwn Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we should be more specific here. The docs say:

"Returns a RdKafka\ConsumerTopic."

https://arnaud.le-blanc.net/php-rdkafka-doc/phpdoc/rdkafka-kafkaconsumer.newtopic.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kwn yep, thats my mistake, it should by KafkaConsumerTopic according to this https://github.com/arnaud-lb/php-rdkafka/blob/6.x/kafka_consumer.stub.php#L52

* @param TopicPartition[] $topic_partitions
* @return TopicPartition[]
*/
public function pausePartitions($topic_partitions)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find it in the docs:
https://arnaud.le-blanc.net/php-rdkafka-doc/phpdoc/class.rdkafka-kafkaconsumer.html

Is that something that was introduced recently and the official docs hasn't been updated yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @param TopicPartition[] $topic_partitions
* @return TopicPartition[]
*/
public function resumePartitions($topic_partitions)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kwn kwn merged commit 23b865d into kwn:master Aug 16, 2022
@kwn
Copy link
Owner

kwn commented Aug 16, 2022

Thanks @tony-sol. Released in 2.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants