Skip to content

Commit 59b04be

Browse files
committed
RdKafka; Replace composer-modifying for testing with --ignore-platform-req argument
1 parent 555d740 commit 59b04be

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: .github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
with: # ext-rdkafka not needed for tests, and a pain to install on CI;
2727
composer-options: "--ignore-platform-req=ext-rdkafka"
2828

29+
- run: sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
30+
2931
- run: vendor/bin/phpunit --exclude-group=functional

Diff for: Tests/bootstrap.php

-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,5 @@
1212
}
1313
}
1414

15-
// Pretend that a high version was installed, opposed to 0.8.5 from kwn/php-rdkafka-stubs
16-
const RD_KAFKA_VERSION = 42424242;
17-
1815
include_once $kafkaStubsDir.'/stubs/constants.php';
1916
include_once $kafkaStubsDir.'/stubs/functions.php';

0 commit comments

Comments
 (0)