Skip to content

[VarDumper] Fix serialization of stubs with null or uninitialized values #53906

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 13, 2024

Conversation

derrabus
Copy link
Member

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

TheStub::__sleep() implementation excludes properties from the serialized representation that are set to their defaults, but it cannot tell apart properties with a null value from properties that don't have a default. This is an issue for typed properties that are uninitialized by default.

@carsonbot carsonbot added this to the 6.4 milestone Feb 12, 2024
@derrabus derrabus force-pushed the bugfix/stub-serialize branch from c764081 to 8bda910 Compare February 12, 2024 10:38
@derrabus derrabus changed the title [VarDumper] Fix serialization of stubs with null values [VarDumper] Fix serialization of stubs with null or uninitialized values Feb 12, 2024
@derrabus derrabus force-pushed the bugfix/stub-serialize branch from 8bda910 to 3ffd495 Compare February 12, 2024 10:44
@ruudk
Copy link
Contributor

ruudk commented Feb 12, 2024

Thanks @derrabus, just tested this and it solves my issue 🎉

@derrabus derrabus merged commit 9f692c6 into symfony:6.4 Feb 13, 2024
@derrabus derrabus deleted the bugfix/stub-serialize branch February 13, 2024 08:53
This was referenced Feb 27, 2024
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.

None yet

4 participants