Skip to content

Commit

Permalink
Remove usage of soft-deprecated PHPUnit API (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored Oct 25, 2023
1 parent e545d0f commit add8b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Monolog/Test/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ protected function getIdentityFormatter(): FormatterInterface
$formatter = $this->createMock(FormatterInterface::class);
$formatter->expects(self::any())
->method('format')
->will(self::returnCallback(function ($record) {
->willReturnCallback(function ($record) {
return $record->message;
}));
});

return $formatter;
}
Expand Down

0 comments on commit add8b2a

Please sign in to comment.