Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[VarExporter] Fix calling parent::__wakeup() when unserializing with LazyProxyTrait #48553

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
Dec 8, 2022

Conversation

azjezz
Copy link
Contributor

@azjezz azjezz commented Dec 8, 2022

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets N.A
License MIT
Doc PR N.A

parent: was getting parsed as a goto label, and __wakeup() as a function call.

this would result in a runtime error once this code branch is reached.

ref: https://twitter.com/azjezz/status/1600870101606989824

Note: i didn't run into this at runtime, so i have no idea how to reach this code branch to test it.

`parent:` was getting parsed as a goto label, and `__wakeup()` as a function call.

this would result in a runtime error once this code branch is reached.

ref: https://twitter.com/azjezz/status/1600870101606989824
@carsonbot carsonbot added this to the 6.2 milestone Dec 8, 2022
@carsonbot carsonbot changed the title chore: fix syntax error [VarExporter] chore: fix syntax error Dec 8, 2022
@nicolas-grekas nicolas-grekas changed the title [VarExporter] chore: fix syntax error [VarExporter] Fix calling parent::__wakeup() when unserializing with LazyProxyTrait Dec 8, 2022
@nicolas-grekas
Copy link
Member

Thank you @azjezz.

@nicolas-grekas nicolas-grekas merged commit 78408a4 into symfony:6.2 Dec 8, 2022
@fabpot fabpot mentioned this pull request Dec 16, 2022
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