Skip to content

Commit 03cb43a

Browse files
authored
Merge pull request #910 from Simperfit/hotfix/remove-static-from-foundation-3-1
feat: change JsonResponse::DEFAULT_ENCODING_OPTIONS with real value
2 parents 0334158 + d6d726c commit 03cb43a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Serializer/JsonEncoder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public function __construct(string $format, BaseJsonEncoder $jsonEncoder = null)
3434

3535
// Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.
3636
$this->jsonEncoder = $jsonEncoder ?: new BaseJsonEncoder(
37-
new JsonEncode(JsonResponse::DEFAULT_ENCODING_OPTIONS), new JsonDecode(true)
37+
// The value "15" will be replaced by "JsonResponse::DEFAULT_ENCODING_OPTIONS" when Symfony HttpFoundation 2.7 support will be dropped
38+
new JsonEncode(15), new JsonDecode(true)
3839
);
3940
}
4041

0 commit comments

Comments
 (0)