Skip to content

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

When __serialize() returns ['foo' => 123], the native implicit __unserialize() function will happily propagate this foo value to the first private $foo property in the inheritance chain.

This didn't work when using VarExporter, and this PR fixes it.

@nicolas-grekas nicolas-grekas merged commit 7d2be52 into symfony:6.4 Aug 18, 2025
9 of 10 checks passed
@nicolas-grekas nicolas-grekas deleted the ve-fix branch August 18, 2025 13:07
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.

2 participants