mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-31 02:10:22 +02:00
Switch to DateTimeImmutable everywhere
This commit is contained in:
@@ -36,6 +36,6 @@ class LogglyFormatterTest extends TestCase
|
||||
$formatted_decoded = json_decode($formatter->format($record), true);
|
||||
$this->assertArrayNotHasKey("datetime", $formatted_decoded);
|
||||
$this->assertArrayHasKey("timestamp", $formatted_decoded);
|
||||
$this->assertEquals(new \DateTime($formatted_decoded["timestamp"]), $record["datetime"]);
|
||||
$this->assertEquals(new \DateTimeImmutable($formatted_decoded["timestamp"]), $record["datetime"]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user