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