Skip to content

Commit

Permalink
[Objects] Patch JsonSerializer (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: onairmarc <[email protected]>
  • Loading branch information
onairmarc and onairmarc authored Dec 16, 2024
1 parent 554f800 commit 87d5066
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ f74b50a0c5a93e2042dd0899f67dc0d77d9f37b2
68d26b0bcc009757d3a8c4b4aca534522832a35b
48e5c975f454025717dcbb55c82fa08e4f463241
11a1cd1aee3bca0336bfd1da90aec77f41577241
9b1f19622f5f0ff72cc171fd298121ac0720f805
2 changes: 2 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/stdlib.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/Objects/JsonSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;

/** @experimental */
class JsonSerializer
{
protected static Collection $normalizers;
Expand All @@ -16,7 +15,7 @@ class JsonSerializer
public static function normalizers(): Collection
{
$defaultNormalizers = [
ObjectNormalizer::class,
new ObjectNormalizer,
];

if (!isset(static::$normalizers)) {
Expand Down

0 comments on commit 87d5066

Please sign in to comment.