Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e68971

Browse files
authored
Merge pull request #1310 from felippeduarte/master
Set return type to flush function in RdkafkaProducer to be compatible to php-rdkafka
2 parents 6cd94e8 + 46f0fd7 commit 1e68971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pkg/rdkafka/RdKafkaProducer.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ public function getTimeToLive(): ?int
115115
return null;
116116
}
117117

118-
public function flush(int $timeout): void
118+
public function flush(int $timeout): ?int
119119
{
120120
// Flush method is exposed in phprdkafka 4.0
121121
if (method_exists($this->producer, 'flush')) {
122-
$this->producer->flush($timeout);
122+
return$this->producer->flush($timeout);
123123
}
124124
}
125125
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /