Skip to content

Commit

Permalink
Update src/DDTrace/Integrations/Kafka/KafkaIntegration.php
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
PROFeNoM and bwoebi authored Jan 3, 2025
1 parent a8bcc6c commit ace3f97
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 @@ -21,7 +21,7 @@ class KafkaIntegration extends Integration

public function init(): int
{
if (strpos(phpversion('rdkafka'), '6.') !== 0) {
if (strtok(phpversion('rdkafka'), '.') >= 6) {
return Integration::NOT_LOADED;
}

Expand Down

0 comments on commit ace3f97

Please sign in to comment.