Skip to content

[Serializer] Add AbstractObjectNormalizer::ENABLE_TYPE_CONVERSION for scalar type transformation #52173

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

Open
wants to merge 10 commits into
base: 7.4
Choose a base branch
from

Conversation

Jeroeny
Copy link
Contributor

@Jeroeny Jeroeny commented Oct 19, 2023

Q A
Branch? 7.1
Bug fix? no
New feature? yes
Deprecations? no
License MIT

The AbstractObjectNormalizer converts string types to other scalar types for the Xml and Csv format.
This logic is quite useful for other untyped formats as well. Like data coming from a Http query.

It'd nice if the logic can be exposed via this new constant to be set in the $context.

@OskarStark
Copy link
Contributor

Needs rebase, thanks

Jeroeny and others added 9 commits January 31, 2024 10:29
…alizer.php

Co-authored-by: Mathias Arlaud <mathias.arlaud@gmail.com>
…ctNormalizerTest.php

Co-authored-by: Mathias Arlaud <mathias.arlaud@gmail.com>
…ctNormalizerTest.php

Co-authored-by: Mathias Arlaud <mathias.arlaud@gmail.com>
…alizer.php

Co-authored-by: Mathias Arlaud <mathias.arlaud@gmail.com>
@Jeroeny Jeroeny force-pushed the enable-type-conversion branch from 268726b to 67c1c50 Compare January 31, 2024 09:31
@Jeroeny
Copy link
Contributor Author

Jeroeny commented Jan 31, 2024

Done

Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
@Jeroeny Jeroeny requested a review from OskarStark January 31, 2024 14:16
@xabbuh xabbuh modified the milestones: 7.1, 7.2 May 15, 2024
@fabpot fabpot modified the milestones: 7.2, 7.3 Nov 20, 2024
@fabpot fabpot modified the milestones: 7.3, 7.4 May 26, 2025
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.

7 participants