From add8b2a49f9653eed69318a80843890562ea59ec Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 25 Oct 2023 15:13:04 +0200 Subject: [PATCH] Remove usage of soft-deprecated PHPUnit API (#1848) --- src/Monolog/Test/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Test/TestCase.php b/src/Monolog/Test/TestCase.php index 98204a95..29ec7c96 100644 --- a/src/Monolog/Test/TestCase.php +++ b/src/Monolog/Test/TestCase.php @@ -73,9 +73,9 @@ class TestCase extends \PHPUnit\Framework\TestCase $formatter = $this->createMock(FormatterInterface::class); $formatter->expects(self::any()) ->method('format') - ->will(self::returnCallback(function ($record) { + ->willReturnCallback(function ($record) { return $record->message; - })); + }); return $formatter; }