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

Fix version displayed in ConsoleRunner #4825

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

derrabus
Copy link
Member

Q A
Type bug
BC Break no
Fixed issues N/A

Summary

When calling the vendor/bin/doctrine-dbal tool, it displays the version of the root package. The root package is usually the application that uses DBAL as a dependency. For instance, if I call this script from the symfony/symfony repository, it displays the Symfony version. I doubt that this is intended and assume that the DBAL version should be displayed instead. At least, this is the behavior on the 2.13.x branch where we still had a Version class for that purpose.

This PR fixes this problem by hardcoding the package name.

@derrabus derrabus changed the title Fix version displayed in ConsoleRunner Fix version displayed in ConsoleRunner Sep 28, 2021
@derrabus derrabus force-pushed the bugfix/console-runner-version branch from 4447a5a to b64fb4d Compare September 28, 2021 14:27
@derrabus derrabus added this to the 3.1.3 milestone Sep 28, 2021
@derrabus derrabus requested a review from morozov September 28, 2021 14:45
@derrabus derrabus merged commit 19c1db0 into doctrine:3.1.x Sep 28, 2021
@derrabus derrabus deleted the bugfix/console-runner-version branch September 28, 2021 14:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 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.

2 participants