1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 18:30:15 +02:00

Change the way objects are normalized to avoid multi-levels of json encoding, fixes #560

This commit is contained in:
Jordi Boggiano
2016-05-26 19:21:47 +01:00
parent 3d7842ec1e
commit 2ff7afda31
5 changed files with 23 additions and 17 deletions

View File

@@ -44,7 +44,7 @@ class ElasticaFormatterTest extends \PHPUnit_Framework_TestCase
$expected = $msg;
$expected['datetime'] = '1970-01-01T00:00:00.000000+00:00';
$expected['context'] = array(
'class' => '[object] (stdClass: {})',
'class' => ['stdClass' => []],
'foo' => 7,
0 => 'bar',
);