From 5c3d9fd6598e798a2c338820997d540749b90b25 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 19 Jan 2022 10:12:25 +0100 Subject: [PATCH] Fix kafka stubs --- dictionaries/CallMap.php | 8 ++++---- dictionaries/CallMap_historical.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 601210ac0..fec8a8e8c 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -10567,7 +10567,7 @@ return [ 'rd_kafka_offset_tail' => ['int', 'cnt'=>'int'], 'RdKafka::addBrokers' => ['int', 'broker_list'=>'string'], 'RdKafka::flush' => ['int', 'timeout_ms'=>'int'], -'RdKafka::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], +'RdKafka::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka::getOutQLen' => ['int'], 'RdKafka::newQueue' => ['RdKafka\Queue'], 'RdKafka::newTopic' => ['RdKafka\Topic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'], @@ -10582,7 +10582,7 @@ return [ 'RdKafka\Conf::setStatsCb' => ['void', 'callback'=>'callable'], 'RdKafka\Consumer::__construct' => ['void', 'conf='=>'?RdKafka\Conf'], 'RdKafka\Consumer::addBrokers' => ['int', 'broker_list'=>'string'], -'RdKafka\Consumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], +'RdKafka\Consumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka\Consumer::getOutQLen' => ['int'], 'RdKafka\Consumer::newQueue' => ['RdKafka\Queue'], 'RdKafka\Consumer::newTopic' => ['RdKafka\ConsumerTopic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'], @@ -10601,7 +10601,7 @@ return [ 'RdKafka\KafkaConsumer::commitAsync' => ['void', 'message_or_offsets='=>'RdKafka\Message|RdKafka\TopicPartition[]|null'], 'RdKafka\KafkaConsumer::consume' => ['RdKafka\Message', 'timeout_ms'=>'int'], 'RdKafka\KafkaConsumer::getAssignment' => ['RdKafka\TopicPartition[]'], -'RdKafka\KafkaConsumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\KafkaConsumerTopic', 'timeout_ms'=>'int'], +'RdKafka\KafkaConsumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\KafkaConsumerTopic', 'timeout_ms'=>'int'], 'RdKafka\KafkaConsumer::getSubscription' => ['array'], 'RdKafka\KafkaConsumer::subscribe' => ['void', 'topics'=>'array'], 'RdKafka\KafkaConsumer::unsubscribe' => ['void'], @@ -10629,7 +10629,7 @@ return [ 'RdKafka\Metadata\Topic::getTopic' => ['string'], 'RdKafka\Producer::__construct' => ['void', 'conf='=>'?RdKafka\Conf'], 'RdKafka\Producer::addBrokers' => ['int', 'broker_list'=>'string'], -'RdKafka\Producer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], +'RdKafka\Producer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka\Producer::getOutQLen' => ['int'], 'RdKafka\Producer::newQueue' => ['RdKafka\Queue'], 'RdKafka\Producer::newTopic' => ['RdKafka\ProducerTopic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 91089cbb2..8acc97724 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -5198,7 +5198,7 @@ return [ 'RarException::setUsingExceptions' => ['RarEntry', 'using_exceptions'=>'bool'], 'RdKafka::addBrokers' => ['int', 'broker_list'=>'string'], 'RdKafka::flush' => ['int', 'timeout_ms'=>'int'], - 'RdKafka::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], + 'RdKafka::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka::getOutQLen' => ['int'], 'RdKafka::newQueue' => ['RdKafka\Queue'], 'RdKafka::newTopic' => ['RdKafka\Topic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'], @@ -5213,7 +5213,7 @@ return [ 'RdKafka\Conf::setStatsCb' => ['void', 'callback'=>'callable'], 'RdKafka\Consumer::__construct' => ['void', 'conf='=>'?RdKafka\Conf'], 'RdKafka\Consumer::addBrokers' => ['int', 'broker_list'=>'string'], - 'RdKafka\Consumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], + 'RdKafka\Consumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka\Consumer::getOutQLen' => ['int'], 'RdKafka\Consumer::newQueue' => ['RdKafka\Queue'], 'RdKafka\Consumer::newTopic' => ['RdKafka\ConsumerTopic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'], @@ -5232,7 +5232,7 @@ return [ 'RdKafka\KafkaConsumer::commitAsync' => ['void', 'message_or_offsets='=>'RdKafka\Message|RdKafka\TopicPartition[]|null'], 'RdKafka\KafkaConsumer::consume' => ['RdKafka\Message', 'timeout_ms'=>'int'], 'RdKafka\KafkaConsumer::getAssignment' => ['RdKafka\TopicPartition[]'], - 'RdKafka\KafkaConsumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\KafkaConsumerTopic', 'timeout_ms'=>'int'], + 'RdKafka\KafkaConsumer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\KafkaConsumerTopic', 'timeout_ms'=>'int'], 'RdKafka\KafkaConsumer::getSubscription' => ['array'], 'RdKafka\KafkaConsumer::subscribe' => ['void', 'topics'=>'array'], 'RdKafka\KafkaConsumer::unsubscribe' => ['void'], @@ -5260,7 +5260,7 @@ return [ 'RdKafka\Metadata\Topic::getTopic' => ['string'], 'RdKafka\Producer::__construct' => ['void', 'conf='=>'?RdKafka\Conf'], 'RdKafka\Producer::addBrokers' => ['int', 'broker_list'=>'string'], - 'RdKafka\Producer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'RdKafka\Topic', 'timeout_ms'=>'int'], + 'RdKafka\Producer::getMetadata' => ['RdKafka\Metadata', 'all_topics'=>'bool', 'only_topic='=>'?RdKafka\Topic', 'timeout_ms'=>'int'], 'RdKafka\Producer::getOutQLen' => ['int'], 'RdKafka\Producer::newQueue' => ['RdKafka\Queue'], 'RdKafka\Producer::newTopic' => ['RdKafka\ProducerTopic', 'topic_name'=>'string', 'topic_conf='=>'?RdKafka\TopicConf'],