-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 information #7957
Fix version information #7957
Conversation
We aren't using ant/phing to handle the releases any more.
c5dc4f0
to
bfc11a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I added suggestions to fix the build
Since `Doctrine\ORM\Version` is now deprecated it shall not be updated on future releases. This ensures that our CLI tool will present the correct version number.
bfc11a4
to
d67e3e8
Compare
This is a significant BC break: the only purpose of the class is to expose the currently installed version so it be updated on subsequent releases. Since the version is exposed as a constant, there's no easy way to dynamically generate this. A workaround could be to create the class dynamically in an autoloader file (reading the version with the help of the ocramius/package-versions package), but that could be considered hacky. @lcobucci would you be open to merging that solution? |
It's not a BC break: the version is frozen, and new consumers (relying on |
Since
Doctrine\ORM\Version
is now deprecated it shall not be updated on future releases.This ensures that our CLI tool will present the correct version number.