8000 [DoctrineBridge] Remove deprecated classes and `ContainerAwareEventManager::getListeners()` deprecation by alexandre-daubois · Pull Request #50575 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DoctrineBridge] Remove deprecated classes and ContainerAwareEventManager::getListeners() deprecation #50575

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 u 8000 p 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

Conversation

alexandre-daubois
Copy link
Member
Q A
Branch? 7.0
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

Removes deprecated code introduced in #49610

@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch from db7df29 to 9c44816 Compare June 7, 2023 12:32
@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch from 9c44816 to a97b1f2 Compare June 7, 2023 12:38
@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch 2 times, most recently from 1de5b05 to 947912b Compare June 7, 2023 13:32
@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch from 9ce38fe to 3c9c2b7 Compare June 8, 2023 12:23
@derrabus derrabus requested a review from stof June 8, 2023 12:27
nicolas-grekas added a commit that referenced this pull request Jun 8, 2023
…eEventManager` (alexandre-daubois)

This PR was merged into the 6.3 branch.

Discussion
----------

[DoctrineBridge] Remove (wrong) PHPDoc on `ContainerAwareEventManager`

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

This PR is a follow-up of the following discussion: #50575 (comment)

Commits
-------

d65db40 [DoctrineBridge] Remove (wrong) PHPDoc on `ContainerAwareEventManager`
symfony-splitter pushed a commit to symfony/doctrine-bridge that referenced this pull request Jun 8, 2023
…eEventManager` (alexandre-daubois)

This PR was merged into the 6.3 branch.

Discussion
----------

[DoctrineBridge] Remove (wrong) PHPDoc on `ContainerAwareEventManager`

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

This PR is a follow-up of the following discussion: symfony/symfony#50575 (comment)

Commits
-------

d65db4073b [DoctrineBridge] Remove (wrong) PHPDoc on `ContainerAwareEventManager`
@nicolas-grekas
Copy link
Member

(rebase needed)

@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch from 3c9c2b7 to c839f87 Compare June 9, 2023 07:17
@alexandre-daubois
Copy link
Member Author

Rebased and updated with DbalLogger (and other) deprecations introduced in 6.4

@alexandre-daubois alexandre-daubois force-pushed the doctrine-bridge-classes-deprecations branch from c839f87 to 4f3337d Compare June 9, 2023 07:20
@derrabus
Copy link
Member
derrabus commented Jun 9, 2023

FYI: DbalLogger is removed by #50571 already. But I'm fine either way, let's keep the change here and finish your PR first.

@derrabus
Copy link
Member
derrabus commented Jun 9, 2023

You need to adjust the expected-missing-return-types.diff file. You can borrow the necessary change from #50571.

@nicolas-grekas nicolas-grekas force-pushed the doctrine-bridge-classes-deprecations branch from 4f3337d to 929e64d Compare June 9, 2023 08:59
@nicolas-grekas nicolas-grekas force-pushed the doctrine-bridge-classes-deprecations branch from 929e64d to 746b123 Compare June 9, 2023 09:01
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@stof
Copy link
Member
stof commented Jun 9, 2023

@derrabus to avoid having to regenerate the expected-missing-return-types.diff file all the time in those code removal PRs, maybe we should first add those return types in 7.0 (by applying the patch defined in this diff file)

@derrabus
Copy link
Member
derrabus commented Jun 9, 2023

That's probably a good idea.

fabpot added a commit that referenced this pull request Jun 9, 2023
This PR was merged into the 7.0 branch.

Discussion
----------

[DoctrineBridge] Kill DBAL 2 support

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

DBAL 2 is dead and buried. Let's remove code that we needed to maintain DBAL 2.

TODO:

- [x] Deprecation layer for removed classes
- [x] Check changes for possible backports to 5.4/6.4
- [x] #50576
- [x] #50579
- [x] #50575

Commits
-------

eacfedf Kill DBAL 2 support
nicolas-grekas added a commit that referenced this pull request Jun 30, 2023
…here it is not used (GromNaN)

This PR was merged into the 7.0 branch.

Discussion
----------

[Doctrine][Serializer] Remove `ExpectDeprecationTrait` where it is not used

| Q             | A
| ------------- | ---
| Branch?       | 7.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | n/a

This unused code has been left by #50558 and #50575.

I think PHPStan should detect when the trait is imported but the method `expectDeprecation` is not used.

Other PR for 6.4 #50828

Commits
-------

81972d3 Remove ExpectDeprecationTrait where it is not used
@fabpot fabpot mentioned this pull request Oct 21, 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.

5 participants
0