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

Document properties as possibly null #10089

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Oct 2, 2022

__sleep() does not list these properties as suposed to be serialized.

This means we have to assert that it is not in the many scenarios where
we resort to these properties. Introducing a private method allows us to
centralize the assertions.

@greg0ire greg0ire force-pushed the remove-unneeded-checks branch 2 times, most recently from 364fcff to 951b3e3 Compare October 2, 2022 14:00
@greg0ire greg0ire marked this pull request as draft October 2, 2022 14:03
@greg0ire greg0ire changed the title Remove unneeded checks Document properties as possibly null Oct 2, 2022
@greg0ire greg0ire force-pushed the remove-unneeded-checks branch 3 times, most recently from f139165 to a3001d7 Compare October 2, 2022 14:54
@greg0ire greg0ire requested review from derrabus and SenseException and removed request for derrabus and SenseException October 2, 2022 14:56
@greg0ire

This comment was marked as resolved.

__sleep() does not list these properties as suposed to be serialized.
This means we have to assert that it is not in the many scenarios where
we resort to these properties. Introducing a private method allows us to
centralize the assertions.
@greg0ire greg0ire marked this pull request as ready for review October 3, 2022 19:56
@greg0ire greg0ire merged commit de32d82 into doctrine:2.14.x Oct 4, 2022
@greg0ire greg0ire deleted the remove-unneeded-checks branch October 4, 2022 21:28
@greg0ire greg0ire added this to the 2.14.0 milestone Dec 19, 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.

2 participants