Skip to content

Commit 87d5066

Browse files
authored
[Objects] Patch JsonSerializer (#33)
Co-authored-by: onairmarc <[email protected]>
1 parent 554f800 commit 87d5066

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ f74b50a0c5a93e2042dd0899f67dc0d77d9f37b2
1818
68d26b0bcc009757d3a8c4b4aca534522832a35b
1919
48e5c975f454025717dcbb55c82fa08e4f463241
2020
11a1cd1aee3bca0336bfd1da90aec77f41577241
21+
9b1f19622f5f0ff72cc171fd298121ac0720f805

.idea/php.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/stdlib.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Objects/JsonSerializer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
88
use Symfony\Component\Serializer\Serializer;
99

10-
/** @experimental */
1110
class JsonSerializer
1211
{
1312
protected static Collection $normalizers;
@@ -16,7 +15,7 @@ class JsonSerializer
1615
public static function normalizers(): Collection
1716
{
1817
$defaultNormalizers = [
19-
ObjectNormalizer::class,
18+
new ObjectNormalizer,
2019
];
2120

2221
if (!isset(static::$normalizers)) {

0 commit comments

Comments
 (0)