Skip to content

Commit f094ef1

Browse files
committed
Fix missing data do warning
1 parent 73720c5 commit f094ef1

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) {
60+
if (($consumerData['qos']['prefetchSize'] ?? null) !== null) {
6161
$prefetchSize = $consumerData['qos']['prefetchSize'];
6262
}
6363

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

0 commit comments

Comments
 (0)