Skip to content

Commit

Permalink
fix: Don't prevent ArgumentCountError
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Jan 3, 2025
1 parent d578b17 commit cd63306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DDTrace/Integrations/Kafka/KafkaIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function injectHeadersIntoArgs(array $args, array $headers): array
$args[4] = array_merge($args[4] ?? [], $headers);
} elseif ($argsCount === 4) {
$args[] = $headers;
} else { // $argsCount === 3
} elseif ($argsCount === 3) {
$args[] = null; // $key
$args[] = $headers;
}
Expand Down

0 comments on commit cd63306

Please sign in to comment.