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

aren't 1.0 and 1.0.0 equal? #155

Closed
staabm opened this issue Dec 18, 2023 · 1 comment
Closed

aren't 1.0 and 1.0.0 equal? #155

staabm opened this issue Dec 18, 2023 · 1 comment
Labels

Comments

@staabm
Copy link
Contributor

staabm commented Dec 18, 2023

I wonder wheter the result of this operation should be true

var_dump(Comparator::greaterThanOrEqualTo('1.0', '1.0.0'))

it leads to false in the latest release

@Seldaek
Copy link
Member

Seldaek commented Dec 18, 2023

Yeah you need to normalize versions first using VersionParser->normalize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants