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

Mark ColumnDiff properties as private and read-only #5684

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented Sep 20, 2022

The @internal attributes of the public ColumnDiff properties introduced in #5657 got lost during the merge up in #5665.

The idea was to make them private as now we have getters for them.

Additionally, we can mark them as read-only and reorder the corresponding constructor arguments in the causal order: first, the old column; second, the new one. Even though the arguments are of the same type, swapping them is safe since besides the tests, there is a single place in the code where the diff is instantiated.

@morozov morozov added this to the 4.0.0 milestone Sep 20, 2022
@morozov morozov marked this pull request as ready for review September 21, 2022 00:41
@morozov morozov requested a review from greg0ire September 21, 2022 00:41
@morozov morozov merged commit 06243b7 into doctrine:4.0.x Sep 21, 2022
@morozov morozov deleted the column-diff-private-properties branch September 21, 2022 06:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants