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

Introduce consistent Comparator API #4707

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

trompette
Copy link
Contributor

@trompette trompette commented Jul 9, 2021

Q A
Type improvement
BC Break no, deprecations only
Fixed issues none

Summary

This PR deprecates previous Comparator API and replaces it with a more consistent one.

For more information, see:

@ausi
Copy link
Contributor

ausi commented Jul 9, 2021

I’m not sure if I understand this change. Wouldn’t it make merging #4659 way harder if we have to keep backwards compatibility there with the new method names from this pull request?

Copy link
Member

@morozov morozov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trompette, the patch looks good overall. Please see a few suggestions inline.

src/Schema/AbstractSchemaManager.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
src/Schema/Comparator.php Outdated Show resolved Hide resolved
@trompette trompette force-pushed the consistent-comparator-api branch from 195fbfc to acb6c52 Compare July 11, 2021 19:47
src/Schema/Comparator.php Outdated Show resolved Hide resolved
@trompette trompette force-pushed the consistent-comparator-api branch from acb6c52 to e623041 Compare July 12, 2021 19:29
psalm.xml.dist Outdated Show resolved Hide resolved
@trompette trompette force-pushed the consistent-comparator-api branch 3 times, most recently from f8eb927 to 8430837 Compare July 12, 2021 20:50
morozov
morozov previously approved these changes Jul 12, 2021
@morozov
Copy link
Member

morozov commented Jul 12, 2021

Sorry, one last thing. We'll need to add a note to UPGRADE.md. Otherwise, looks good.

This commit deprecates:
- calls to compare(), and
- static calls to compareSchemas().
@trompette trompette force-pushed the consistent-comparator-api branch from 10f1c6a to dda7bf9 Compare July 13, 2021 19:19
@morozov morozov merged commit b37d126 into doctrine:3.2.x Jul 13, 2021
@morozov
Copy link
Member

morozov commented Jul 13, 2021

Thanks, @trompette!

@morozov morozov added this to the 3.2.0 milestone Jul 13, 2021
@trompette trompette deleted the consistent-comparator-api branch July 13, 2021 21:45
@morozov
Copy link
Member

morozov commented Jul 16, 2021

@trompette if you fancy, you can go ahead and file another PR that removes the deprecated APIs from 4.0.x (will also need an note in UPGRADE.md).

trompette added a commit to trompette/dbal that referenced this pull request Jul 16, 2021
The method has been deprecated and scheduled for removal since doctrine#4707.
@trompette
Copy link
Contributor Author

@morozov, done! 😉

trompette added a commit to trompette/dbal that referenced this pull request Jul 16, 2021
The method has been deprecated and scheduled for removal since doctrine#4707.
trompette added a commit to trompette/dbal that referenced this pull request Jul 16, 2021
The method has been deprecated and scheduled for removal since doctrine#4707.
trompette added a commit to trompette/dbal that referenced this pull request Jul 16, 2021
The method has been deprecated and scheduled for removal since doctrine#4707.
chalasr added a commit to symfony/symfony that referenced this pull request Jul 14, 2022
This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Fix calls to deprecated DBAL methods

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

Follows doctrine/dbal#4746 and doctrine/dbal#4707.

Commits
-------

2f834f2 [Messenger] Fix calls to deprecated DBAL methods
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2022
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.

4 participants