1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-13 16:44:23 +02:00

Fix gelf message formatter failing to handle context/extra numeric keys, fixes #1932

This commit is contained in:
Jordi Boggiano
2025-03-16 14:03:31 +01:00
parent 7ca003e6ae
commit 467e764fb6
2 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ class GelfMessageFormatterTest extends MonologTestCase
channel: 'meh',
context: ['from' => 'logger'],
datetime: new \DateTimeImmutable("@0"),
extra: ['file' => 'test', 'line' => 14],
extra: ['file' => 'test', 'line' => 14, 0 => 'foo'],
);
$message = $formatter->format($record);