Skip to content

[Serializer] Custom Normalizer broken after upgrading to 6.1 #1252

Closed
@alexchuin

Description

@alexchuin

Symfony version(s) affected

6.1

Description

My custom Normalizer is broken since i've upgraded to Symfony 6.1.
This problem seems to be related to the new Serializer Profiler.

Maybe I forgot something?

Thanks,
Alex

How to reproduce

Just use this example :

https://symfony.com/doc/6.1/serializer/custom_normalizer.html

Possible Solution

No response

Additional Context

FileNormalizer::__construct(): Argument symfony/symfony#2 ($normalizer) must be of type Symfony\\Component\\Serializer\\Normalizer\\ObjectNormalizer, Symfony\\Component\\Serializer\\Debug\\TraceableNormalizer given

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions