diff --git a/src/Core/Logger/Type/AbstractLogger.php b/src/Core/Logger/Type/AbstractLogger.php index e26f1705d..e7e711d7e 100644 --- a/src/Core/Logger/Type/AbstractLogger.php +++ b/src/Core/Logger/Type/AbstractLogger.php @@ -129,7 +129,7 @@ abstract class AbstractLogger implements LoggerInterface } } - return @json_encode($output); + return @json_encode($output, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); } /** diff --git a/tests/src/Core/Logger/AbstractLoggerTest.php b/tests/src/Core/Logger/AbstractLoggerTest.php index 2734158b5..d85e754c3 100644 --- a/tests/src/Core/Logger/AbstractLoggerTest.php +++ b/tests/src/Core/Logger/AbstractLoggerTest.php @@ -157,7 +157,7 @@ abstract class AbstractLoggerTest extends MockedTest self::assertLogline($text); - self::assertStringContainsString(@json_encode($context), $text); + self::assertStringContainsString(@json_encode($context, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), $text); } /** @@ -176,7 +176,7 @@ abstract class AbstractLoggerTest extends MockedTest self::assertLogline($text); - self::assertStringContainsString(@json_encode($assertion), $this->getContent()); + self::assertStringContainsString(@json_encode($assertion, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), $this->getContent()); } public function testNoObjectHandling()