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

[VarExporter] Fix lazy-proxying readonly classes on PHP 8.3 #49282

Merged
merged 1 commit into from Feb 7, 2023

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Feb 7, 2023

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

Now that https://wiki.php.net/rfc/readonly_amendments has been accepted, I figured out the design of LazyProxyTrait needs some tweaks to support readonly classes.

This basically move the LazyProxyTrait::$lazyObjectReal property to LazyObjectState::$realInstance.

@nicolas-grekas nicolas-grekas merged commit f910435 into symfony:6.2 Feb 7, 2023
7 of 9 checks passed
@nicolas-grekas nicolas-grekas deleted the ve-readonly-proxy branch February 7, 2023 15:44
@fabpot fabpot mentioned this pull request Feb 28, 2023
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

2 participants