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 version reconciliation #33

Closed
wants to merge 2 commits into from

Conversation

atimmer
Copy link
Contributor

@atimmer atimmer commented Mar 8, 2017

The previous method doesn't work in any case

atimmer added 2 commits March 8, 2017 15:04
The previous method doesn't work in any case
public function getHookPriority() {
$version = include dirname( __FILE__ ) . '/../configs/version.php';

$version = (int) str_replace( '.', '', $version );
Copy link
Contributor

Choose a reason for hiding this comment

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

That won't work, as 1.0.12 => 1012 and 2.0.0 => 200 .

Copy link
Contributor

@schlessera schlessera Mar 8, 2017

Choose a reason for hiding this comment

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

Try something like 1000 * $major + 100 * $minor + 10 * $patch or something.

@atimmer
Copy link
Contributor Author

atimmer commented Mar 11, 2017

See #4 (comment)

@atimmer atimmer closed this Mar 11, 2017
@atimmer atimmer deleted the stories/at/fix-version-reconciliation branch March 11, 2017 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants