mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-02 11:20:31 +02:00
Fix removing of json options, fixes #1469
This commit is contained in:
@@ -99,7 +99,7 @@ class NormalizerFormatter implements FormatterInterface
|
|||||||
if ($enable) {
|
if ($enable) {
|
||||||
$this->jsonEncodeOptions |= JSON_PRETTY_PRINT;
|
$this->jsonEncodeOptions |= JSON_PRETTY_PRINT;
|
||||||
} else {
|
} else {
|
||||||
$this->jsonEncodeOptions ^= JSON_PRETTY_PRINT;
|
$this->jsonEncodeOptions &= ~JSON_PRETTY_PRINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@@ -255,6 +255,6 @@ class NormalizerFormatter implements FormatterInterface
|
|||||||
|
|
||||||
public function removeJsonEncodeOption($option)
|
public function removeJsonEncodeOption($option)
|
||||||
{
|
{
|
||||||
$this->jsonEncodeOptions ^= $option;
|
$this->jsonEncodeOptions &= ~$option;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user