We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cd94e8 + 46f0fd7 commit 1e68971Copy full SHA for 1e68971
1 file changed
pkg/rdkafka/RdKafkaProducer.php
@@ -115,11 +115,11 @@ public function getTimeToLive(): ?int
115
return null;
116
}
117
118
- public function flush(int $timeout): void
+ public function flush(int $timeout): ?int
119
{
120
// Flush method is exposed in phprdkafka 4.0
121
if (method_exists($this->producer, 'flush')) {
122
- $this->producer->flush($timeout);
+ return $this->producer->flush($timeout);
123
124
125
0 commit comments