Skip to content

[Serializer] fix default context in Serializer #59552

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

Conversation

Valmonzo
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #58628
License MIT

Bug fix approach for #58889

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just make the method non-internal or even keep it as is on 7.3, instead of making it a constructor parameter as proposed in #58889.

*
* @param array<string, mixed> $defaultContext
*/
public function setDefaultContext(array $defaultContext): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be added as a constructor argument to me

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the approach in #58889.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks cleaner for me too. Should I add more details to say that it's a fix up to 7.3?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we merge this as a bugfix for branches up to 7.3?

@nicolas-grekas
Copy link
Member

Closing in favor of #58889 (which should target 6.4 now)

@Valmonzo Valmonzo deleted the fix/serializer-default-context-as-internal branch January 28, 2025 18:53
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.

4 participants