Skip to content

Commit f055efd

Browse files
committed
Fixed missing data warning
1 parent f094ef1 commit f055efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Consumer/ConsumerFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ private function create(string $name): Consumer
5757
$prefetchSize = null;
5858
$prefetchCount = null;
5959

60-
if (($consumerData['qos']['prefetchSize'] ?? null) !== null) {
60+
if (isset($consumerData['qos']['prefetchSize'])) {
6161
$prefetchSize = $consumerData['qos']['prefetchSize'];
6262
}
6363

64-
if (($consumerData['qos']['prefetchCount'] ?? null) !== null) {
64+
if (isset($consumerData['qos']['prefetchCount'])) {
6565
$prefetchCount = $consumerData['qos']['prefetchCount'];
6666
}
6767

0 commit comments

Comments
 (0)