Skip to content
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

[PropertyAccess] Fixes getValue() on an unitialized object property on a lazy ghost #53891

Merged

Conversation

priyadi
Copy link
Contributor

@priyadi priyadi commented Feb 10, 2024

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

With a lazy ghost that has an uninitialized property that should contain an object, attempting to $propertyAccessor->getValue() on it will previously throw Error, not the expected UninitializedPropertyException. This PR fixes the problem.

@nicolas-grekas nicolas-grekas force-pushed the fix-propertyaccess-getvalue-lazyghost branch from 19fda35 to cae256b Compare February 14, 2024 15:26
@nicolas-grekas
Copy link
Member

Thank you @priyadi.

@nicolas-grekas nicolas-grekas merged commit 931de58 into symfony:6.4 Feb 14, 2024
6 of 9 checks passed
This was referenced Feb 27, 2024
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.

None yet

3 participants