Skip to content

Commit

Permalink
Fixed missing data warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bckp committed Mar 28, 2024
1 parent f094ef1 commit f055efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Consumer/ConsumerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ private function create(string $name): Consumer
$prefetchSize = null;
$prefetchCount = null;

if (($consumerData['qos']['prefetchSize'] ?? null) !== null) {
if (isset($consumerData['qos']['prefetchSize'])) {
$prefetchSize = $consumerData['qos']['prefetchSize'];
}

if (($consumerData['qos']['prefetchCount'] ?? null) !== null) {
if (isset($consumerData['qos']['prefetchCount'])) {
$prefetchCount = $consumerData['qos']['prefetchCount'];
}

Expand Down

0 comments on commit f055efd

Please sign in to comment.