Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] BC break introduced in MetadataAwareNameConverter #58294

Closed
@aurimasrim

Description

@aurimasrim

Symfony version(s) affected

7.1

Description

We were trying to update the Symfony version to 7.1 and noticed that name converting isn't working correctly for us.
We found out that the issue was caused by the removal of the interface AdvancedNameConverterInterface in MetadataAwareNameConverter here.
As I understand, removing interface implementation from a class is a breaking change and shouldn't be introduced in a minor version.
image

Generally, it wouldn't cause problems, but for us it did because we are decorating NameConverterInterface and we were explicitly checking $this->decoratedNameConverter instanceof AdvancedNameConverterInterface

How to reproduce

N/A

Possible Solution

Add AdvancedNameConverterInterface back to MetadataAwareNameConverter

Additional Context

No response

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