Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Tilde version range #54

Open
jackd248 opened this issue Jul 9, 2018 · 0 comments
Open

Tilde version range #54

jackd248 opened this issue Jul 9, 2018 · 0 comments

Comments

@jackd248
Copy link

jackd248 commented Jul 9, 2018

I got some problems with version comparisons.

$range = new expression('~4.1');
$range->satisfiedBy(new version('4.9.6')); //false -> should be true

The tilde operator should work like the following example from composer: ~1.2 is equivalent to >=1.2 <2.0.0. It's like you documented in your Readme, but it's actually not working.

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

No branches or pull requests

1 participant