Skip to content

Commit 92babf8

Browse files
authored
Feat(MPM-533): rdkafka6.0-support (#67)
1 parent 15b92ec commit 92babf8

33 files changed

+10
-34
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22

33
orbs:
4-
ci-caching: jobcloud/ci-caching@1.0.2
5-
ci-php: jobcloud/ci-php@0.32
4+
ci-caching: jobcloud/ci-caching@3.0
5+
ci-php: jobcloud/ci-php@2.1
66

77
workflows:
88
test-php-kafka-lib:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test: pcov-disable
2222

2323
static-analysis: pcov-disable
2424
mkdir -p build/logs/phpstan
25-
${PHPSTAN} analyse --no-progress --memory-limit=64
25+
${PHPSTAN} analyse --no-progress
2626

2727
update-dependencies:
2828
composer update

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": "^7.3|^8.0",
21-
"ext-rdkafka": "^4.0|^5.0",
21+
"ext-rdkafka": "^4.0|^5.0|^6.0",
2222
"ext-json": "*"
2323
},
2424
"require-dev": {
@@ -44,5 +44,10 @@
4444
"branch-alias": {
4545
"dev-master": "2.0-dev"
4646
}
47+
},
48+
"config": {
49+
"allow-plugins": {
50+
"infection/extension-installer": false
51+
}
4752
}
4853
}

docker/dev/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -
3131

3232
# PHP: Install php extensions
3333
RUN pecl channel-update pecl.php.net && \
34-
pecl install rdkafka pcov && \
34+
pecl install rdkafka-6.0.1 pcov && \
3535
docker-php-ext-install pcntl && \
3636
php-ext-enable rdkafka pcntl pcov
3737

src/Callback/KafkaConsumerRebalanceCallback.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
final class KafkaConsumerRebalanceCallback
1717
{
18-
1918
/**
2019
* @param RdKafkaConsumer $consumer
2120
* @param integer $errorCode

src/Callback/KafkaErrorCallback.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
final class KafkaErrorCallback
1414
{
15-
1615
/**
1716
* @param mixed $kafka
1817
* @param integer $errorCode

src/Conf/KafkaConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
class KafkaConfiguration extends RdKafkaConf
1313
{
14-
1514
/**
1615
* @var string[]
1716
*/

src/Consumer/AbstractKafkaConsumer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
abstract class AbstractKafkaConsumer implements KafkaConsumerInterface
2222
{
23-
2423
/**
2524
* @var KafkaConfiguration
2625
*/

src/Consumer/KafkaConsumerBuilder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
final class KafkaConsumerBuilder implements KafkaConsumerBuilderInterface
1616
{
17-
1817
public const CONSUMER_TYPE_LOW_LEVEL = 'low';
1918
public const CONSUMER_TYPE_HIGH_LEVEL = 'high';
2019

src/Consumer/KafkaConsumerBuilderInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
interface KafkaConsumerBuilderInterface
1010
{
11-
1211
public const OFFSET_BEGINNING = RD_KAFKA_OFFSET_BEGINNING;
1312
public const OFFSET_END = RD_KAFKA_OFFSET_END;
1413
public const OFFSET_STORED = RD_KAFKA_OFFSET_STORED;

0 commit comments

Comments
 (0)