[英]Composer interpreting Tildes
How is the tilde interpreted? 波浪号如何解释? An example is
一个例子是
"require":{
symfony/config": "~2.3"
}
Does that mean chose the closest version to 2.3 either up or down? 这是否意味着选择向上或向下最接近2.3的版本?
Have a look at the documentation: http://getcomposer.org/doc/01-basic-usage.md#package-versions 看一下文档: http : //getcomposer.org/doc/01-basic-usage.md#package-versions
Next Significant Release (Tilde Operator): The ~ operator is best explained by example:
~1.2
is equivalent to>=1.2,<2.0
, while~1.2.3
is equivalent to>=1.2.3,<1.3
下一个重要版本(Tilde运算符):〜运算符最好用示例解释:
~1.2
等效于>=1.2,<2.0
,而~1.2.3
等效于>=1.2.3,<1.3
It'll install at least that required version, but not a version that increments the next bigger bit of the version number. 它将至少安装所需的版本,但不会安装增加版本号下一个更大位的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.