Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarExporter] Improve partial-initialization API for ghost objects#48312
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
0deed0e toc5f79f6CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
c5f79f6 toc4926f0CompareUh oh!
There was an error while loading.Please reload this page.
c4926f0 to3a84d59CompareUh oh!
There was an error while loading.Please reload this page.
3a84d59 tocd5bf0cCompare
alcaeus left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I've tested this against a small proof of concept I've been working on, and the object initialisation works as expected. Thanks@nicolas-grekas!
fabpot commentedNov 25, 2022
Thank you@nicolas-grekas. |
Uh oh!
There was an error while loading.Please reload this page.
Discussed with@alcaeus at SymfonyCon, this improves support for partial-initialization of lazy ghost objects.
isLazyObjectInitialized(bool $partial = false): boolallows checking if an object is partially-initialized."\0"key can be used to initialize all/many properties at once.Targeting 6.2 because this would be a BC break in 6.3, also because this improves a new unreleased feature.