mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 08:04:02 +02:00
Switch to DateTimeImmutable everywhere
This commit is contained in:
@@ -36,7 +36,7 @@ class FluentdFormatterTest extends TestCase
|
||||
public function testFormat()
|
||||
{
|
||||
$record = $this->getRecord(Logger::WARNING);
|
||||
$record['datetime'] = new \DateTime("@0");
|
||||
$record['datetime'] = new \DateTimeImmutable("@0");
|
||||
|
||||
$formatter = new FluentdFormatter();
|
||||
$this->assertEquals(
|
||||
@@ -51,7 +51,7 @@ class FluentdFormatterTest extends TestCase
|
||||
public function testFormatWithTag()
|
||||
{
|
||||
$record = $this->getRecord(Logger::ERROR);
|
||||
$record['datetime'] = new \DateTime("@0");
|
||||
$record['datetime'] = new \DateTimeImmutable("@0");
|
||||
|
||||
$formatter = new FluentdFormatter(true);
|
||||
$this->assertEquals(
|
||||
|
Reference in New Issue
Block a user