diff --git a/phpunit.xml b/phpunit.xml index d3da7fa4..9a4b1524 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,18 +1,23 @@ - - - - tests/ - - - - - src/ - - - src/constants.php - src/RdKafka/FFI/Methods.php - src/RdKafka/FFI/Versions - - + + + + tests/ + + + + + src/ + + + src/constants.php + src/RdKafka/FFI/Methods.php + src/RdKafka/FFI/Versions + + diff --git a/resources/phpunit/bootstrap.php b/resources/phpunit/bootstrap.php index a196517c..146cf6a7 100644 --- a/resources/phpunit/bootstrap.php +++ b/resources/phpunit/bootstrap.php @@ -1,5 +1,7 @@ setOpaque($expectedTopicOpaque); $topicConf->setPartitionerCb( - function (string $key, int $partitionCount, ?object $topic_opaque = null, ?object $message_opaque = null) use (&$callbackTopicOpaque, &$callbackMessageOpaque) { + function (?string $key, int $partitionCount, ?object $topic_opaque = null, ?object $message_opaque = null) use (&$callbackTopicOpaque, &$callbackMessageOpaque) { $callbackTopicOpaque = $topic_opaque; $callbackMessageOpaque = $message_opaque; // force partition 2