1
0
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:
Jordi Boggiano
2020-07-08 21:09:28 +02:00
parent 71c124b11a
commit 0ae6fd8a09

View File

@@ -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;
}
}