File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
"ext-json" : " *"
23
23
},
24
24
"require-dev" : {
25
- "phpunit/phpunit" : " 9.4.* " ,
25
+ "phpunit/phpunit" : " ^ 9.4" ,
26
26
"squizlabs/php_codesniffer" : " ^3.5.4" ,
27
27
"phpstan/phpstan" : " ^0.12" ,
28
28
"php-mock/php-mock-phpunit" : " ^2.6" ,
29
29
"kwn/php-rdkafka-stubs" : " ^2.0.0" ,
30
30
"rregeer/phpunit-coverage-check" : " ^0.3.1" ,
31
31
"johnkary/phpunit-speedtrap" : " ^3.1" ,
32
32
"flix-tech/avro-serde-php" : " ^1.4" ,
33
- "infection/infection" : " ^0.18 "
33
+ "infection/infection" : " ^0.20 "
34
34
},
35
35
"autoload" : {
36
36
"psr-4" : {
42
42
},
43
43
"extra" : {
44
44
"branch-alias" : {
45
- "dev-master" : " 1 .0-dev"
45
+ "dev-master" : " 2 .0-dev"
46
46
}
47
47
}
48
48
}
Original file line number Diff line number Diff line change 1
- FROM php:7.3 -cli-alpine3.12
1
+ FROM php:7.4 -cli-alpine3.12
2
2
3
3
ARG HOST_USER_ID
4
4
ARG HOST_USER
Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ public function build(): KafkaConsumerInterface
311
311
$ this ->registerCallbacks ($ kafkaConfig );
312
312
313
313
//create RdConsumer
314
-
315
314
if (self ::CONSUMER_TYPE_LOW_LEVEL === $ this ->consumerType ) {
316
315
if (null !== $ this ->consumeCallback ) {
317
316
throw new KafkaConsumerBuilderException (
Original file line number Diff line number Diff line change @@ -332,13 +332,13 @@ public function testBuildLowLevelSuccess(): void
332
332
$ callback = function ($ kafka , $ errId , $ msg ) {
333
333
// Anonymous test method, no logic required
334
334
};
335
-
336
335
/** @var $consumer KafkaLowLevelConsumer */
337
336
$ consumer = $ this ->kafkaConsumerBuilder
338
337
->withAdditionalBroker ('localhost ' )
339
338
->withAdditionalSubscription ('test-topic ' )
340
339
->withRebalanceCallback ($ callback )
341
340
->withErrorCallback ($ callback )
341
+ ->withLogCallback ($ callback )
342
342
->withConsumerType (KafkaConsumerBuilder::CONSUMER_TYPE_LOW_LEVEL )
343
343
->build ();
344
344
@@ -391,6 +391,7 @@ public function testBuildHighLevelSuccess(): void
391
391
->withAdditionalSubscription ('test-topic ' )
392
392
->withRebalanceCallback ($ callback )
393
393
->withErrorCallback ($ callback )
394
+ ->withLogCallback ($ callback )
394
395
->build ();
395
396
396
397
$ conf = $ consumer ->getConfiguration ();
You can’t perform that action at this time.
0 commit comments