Skip to content

[Twig] Fixing a bug where a stringable attribute was converted too late #744

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

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets Fix #741
License MIT

This caused LiveComponents to try to use the Stringable object in its checksum and to json_encode() the object into the props data, instead of using the final, string value. Basically, we cast to the string earlier.

This caused LiveComponents to try to use the Stringable object in its checksum and to
json_encode() the object into the props data, instead of using the final, string value
@weaverryan weaverryan changed the title [Twig] Fixing a bug where a strinagable attribute was converted too late [Twig] Fixing a bug where a stringable attribute was converted too late Mar 17, 2023
@weaverryan weaverryan merged commit 6535b56 into symfony:2.x Mar 20, 2023
@weaverryan weaverryan deleted the avoid-stringable-object-attribute branch March 20, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Live] Avoid accidental object attributes from being part of the checksum
1 participant