Skip to content

[Serializer] Add support for stdClass #35596

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

Merged
merged 1 commit into from
Feb 5, 2020
Merged

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Feb 5, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #33047, #33894
License MIT
Doc PR n/a

Add support for stdClass. Alternative to #33894.

@chalasr
Copy link
Member

chalasr commented Feb 5, 2020

Thank you @dunglas.

chalasr added a commit that referenced this pull request Feb 5, 2020
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Serializer] Add support for stdClass

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #33047, #33894
| License       | MIT
| Doc PR        | n/a

Add support for `stdClass`. Alternative to #33894.

Commits
-------

d7bca80 [Serializer] Add support for stdClass
@chalasr chalasr merged commit d7bca80 into symfony:master Feb 5, 2020
@chalasr
Copy link
Member

chalasr commented Feb 5, 2020

CHANGELOG entry added in 2646fa9

@dunglas dunglas deleted the fix-33047 branch February 5, 2020 13:43
teohhanhui added a commit to teohhanhui/api-platform-core that referenced this pull request Feb 27, 2020
@Ousret
Copy link

Ousret commented Mar 23, 2020

Is this exclusive to symfony 5.1 ? Would it be ok to include it in symfony 4.4 ? Why is this considered a feature instead of a bugfix ? Fix #33047, #33894

Thank you

@niksteff
Copy link

I also wanted to ask nicely for a merge to the 4.4 branch. In the meantime i applied the fix manually. Would not prefer to keep it that way :). Thanks for your time.

@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@fabpot fabpot mentioned this pull request May 5, 2020
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.

[Serializer] Normalizers can't handle \stdClass
7 participants