Skip to content

Commit 5cbd208

Browse files
authored
chore: add typehint to RdKafkaConsumer#getQueue
Prevent the vscode intelephense error : "Undefined method 'getPartition'."
1 parent 2221fe2 commit 5cbd208

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/rdkafka/RdKafkaConsumer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public function setOffset(int $offset = null): void
7575
$this->offset = $offset;
7676
}
7777

78+
/**
79+
* @return RdKafkaTopic
80+
*/
7881
public function getQueue(): Queue
7982
{
8083
return $this->topic;

0 commit comments

Comments
 (0)