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

Change type hint from Registry to ManagerRegistry in ProfilerController #1764

Merged
merged 2 commits into from Mar 7, 2024

Conversation

priyadi
Copy link
Contributor

@priyadi priyadi commented Mar 7, 2024

The previous code breaks decorating ManagerRegistry. ProfilerController only uses getConnection() which is in the interface, so it is not a problem. And it is also the only remaining place in the package where Registry is used as the type hint instead of ManagerRegistry.

Copy link
Contributor

@dmaicher dmaicher left a comment

Choose a reason for hiding this comment

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

LGTM

@dmaicher dmaicher requested a review from ostrolucky March 7, 2024 08:18
@ostrolucky
Copy link
Member

Ideally we should use \Doctrine\Persistence\ConnectionRegistry here, since that method is defined there

@priyadi
Copy link
Contributor Author

priyadi commented Mar 7, 2024

Ideally we should use \Doctrine\Persistence\ConnectionRegistry here, since that method is defined there

changed ManagerRegistry to ConnectionRegistry

@dmaicher
Copy link
Contributor

dmaicher commented Mar 7, 2024

@ostrolucky do we consider this a bugfix for 2.11.x? or an improvement for 2.12.x?

@ostrolucky
Copy link
Member

Let's do 2.12. I can't see how is this a bugfix

@ostrolucky ostrolucky changed the base branch from 2.11.x to 2.12.x March 7, 2024 11:10
@dmaicher dmaicher added this to the 2.12.0 milestone Mar 7, 2024
@ostrolucky ostrolucky merged commit 26a87a7 into doctrine:2.12.x Mar 7, 2024
14 checks passed
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

3 participants