Skip to content

Comments

[Validator] Update constraint serialization docs to use __serialize()…#21882

Merged
javiereguiluz merged 1 commit intosymfony:8.0from
lacatoire:replace-sleep-with-serialize
Feb 13, 2026
Merged

[Validator] Update constraint serialization docs to use __serialize()…#21882
javiereguiluz merged 1 commit intosymfony:8.0from
lacatoire:replace-sleep-with-serialize

Conversation

@lacatoire
Copy link
Contributor

[Validator] Update constraint serialization docs to use __serialize() instead of __sleep()

Fixes #21290

@javiereguiluz javiereguiluz force-pushed the replace-sleep-with-serialize branch from e7b4b84 to 32d857b Compare February 13, 2026 08:48
@javiereguiluz javiereguiluz merged commit 6c72ace into symfony:8.0 Feb 13, 2026
2 of 3 checks passed
@javiereguiluz
Copy link
Member

Thanks Louis-Arnaud!

While merging I removed the whole code example because it only made sense in the past, when you had to configure things manually. I also reworded the content as a note because now Symfony handles everything for you, so you don't really have to think much about having private properties in a custom constraint.

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.

3 participants