mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 15:14:14 +02:00
Fix boolean to string convertation. Fix double normalization.
Details bug: $context = ["false", false]; // formatted as {"0":"false","1":"false"} when need {"0":"false","1":false}
This commit is contained in:
@@ -42,9 +42,11 @@ class LineFormatterTest extends \PHPUnit_Framework_TestCase
|
||||
'context' => array(
|
||||
'foo' => 'bar',
|
||||
'baz' => 'qux',
|
||||
'bool' => false,
|
||||
'null' => null,
|
||||
)
|
||||
));
|
||||
$this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foo {"foo":"bar","baz":"qux"} []'."\n", $message);
|
||||
$this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foo {"foo":"bar","baz":"qux","bool":false,"null":null} []'."\n", $message);
|
||||
}
|
||||
|
||||
public function testDefFormatExtras()
|
||||
|
Reference in New Issue
Block a user