K
K
kot-airplane2018-04-15 09:58:03
Composer
kot-airplane, 2018-04-15 09:58:03

How are the versions different in composer?

For example "^1.0" and "~1.0" according to the doc https://getcomposer.org/doc/articles/versions.md#v... they will both update to 1.9.9 but different characters must be used for something and not alone?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bille, 2018-04-15
@kot-airplane

For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0

The ~ operator is best explained by example: ~1.2 is equivalent to >=1.2 <2.0.0, while ~1.2.3 is equivalent to >=1.2.3 <1.3.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question