Skip to content

[ObjectMapper] attribute extends metadata to avoid duplication #60130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

soyuka
Copy link
Contributor

@soyuka soyuka commented Apr 3, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues none
License MIT

Symfony\Component\ObjectMapper\Attribute\Map and Symfony\Component\ObjectMapper\Metadata\Mapping are the same, Mapping is the metadata class and is @internal whether Map is the attribute. To ease the maintenance we can just make Map extends Mapping.

@stof
Copy link
Member

stof commented Apr 4, 2025

#60148 is doing the opposite change by making the internal class extend the public one, which makes it clearer that the public API of the class has to be covered by BC.

@soyuka soyuka closed this Apr 4, 2025
@soyuka
Copy link
Contributor Author

soyuka commented Apr 4, 2025

superseeded by #60148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants