diff --git a/src/functions.php b/src/functions.php index 1384e67d7..e2ccae785 100644 --- a/src/functions.php +++ b/src/functions.php @@ -52,7 +52,7 @@ * * Adding a registered logger is a NOP. */ -function add_logger(LoggerInterface $logger): void +function addLogger(LoggerInterface $logger): void { PsrLogAdapter::addLogger($logger); } @@ -62,7 +62,7 @@ function add_logger(LoggerInterface $logger): void * * Removing an unregistered logger is a NOP. */ -function remove_logger(LoggerInterface $logger): void +function removeLogger(LoggerInterface $logger): void { PsrLogAdapter::removeLogger($logger); } diff --git a/tests/PsrLogAdapterTest.php b/tests/PsrLogAdapterTest.php index effb669e9..e30010557 100644 --- a/tests/PsrLogAdapterTest.php +++ b/tests/PsrLogAdapterTest.php @@ -11,9 +11,9 @@ use Psr\Log\LogLevel; use function func_get_args; -use function MongoDB\add_logger; +use function MongoDB\addLogger; use function MongoDB\Driver\Monitoring\mongoc_log; -use function MongoDB\remove_logger; +use function MongoDB\removeLogger; use function sprintf; class PsrLogAdapterTest extends BaseTestCase @@ -39,12 +39,12 @@ public function testAddAndRemoveLoggerFunctions(): void mongoc_log(LogSubscriber::LEVEL_INFO, 'domain1', 'info1'); PsrLogAdapter::writeLog(PsrLogAdapter::LEVEL_INFO, 'domain2', 'info2'); - add_logger($logger); + addLogger($logger); mongoc_log(LogSubscriber::LEVEL_INFO, 'domain3', 'info3'); PsrLogAdapter::writeLog(PsrLogAdapter::LEVEL_INFO, 'domain4', 'info4'); - remove_logger($logger); + removeLogger($logger); mongoc_log(LogSubscriber::LEVEL_INFO, 'domain5', 'info5'); PsrLogAdapter::writeLog(PsrLogAdapter::LEVEL_INFO, 'domain6', 'info6');