<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Le sam. 26 sept. 2015 à 16:48, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 2015-09-19 18:56, Hugues Peccatte a écrit :<br>
> Le dim. 20 sept. 2015 à 00:07, Hugues Peccatte<br>
> <<a href="mailto:hugues.peccatte@gmail.com" target="_blank">hugues.peccatte@gmail.com</a> <mailto:<a href="mailto:hugues.peccatte@gmail.com" target="_blank">hugues.peccatte@gmail.com</a>>> a écrit :<br>
><br>
>     Hi,<br>
><br>
>     I just saw that in our composer.json, the dependencies in<br>
>     require-dev section are using ">=".<br>
>     Composer deals with version number, considering that projects are<br>
>     following semantic versioning (see <a href="http://semver.org/" rel="noreferrer" target="_blank">http://semver.org/</a>). And in this<br>
>     "standard", there is one important thing: "Given a version number<br>
>     MAJOR.MINOR.PATCH, increment the MAJOR version when you make<br>
>     incompatible API changes". That means that 4.8 (current version) of<br>
>     PHPUnit might not be compatible with 3.7, while an hypothetical 3.50<br>
>     should be compatible. (In reality… 3.7.7 is the last, for now.)<br>
>     Knowing this, and to be sure that we won't have bad surprises,<br>
>     shouldn't we use "~3.7"? And so replace:<br>
>     /    "require-dev": {/<br>
>     /        "satooshi/php-coveralls": ">=0.6",/<br>
>     /        "phpunit/phpunit": ">=3.7",/<br>
>     /        "phpunit/phpunit-selenium": ">=1.2",/<br>
>     /        "squizlabs/php_codesniffer": "2.*"/<br>
>     /    },/<br>
>     by<br>
>     /    "require-dev": {/<br>
>     /        "satooshi/php-coveralls": "~0.6",/<br>
>     /        "phpunit/phpunit": "~3.7",/<br>
>     /        "phpunit/phpunit-selenium": "~1.2",/<br>
>     /        "squizlabs/php_codesniffer": "2.*"/<br>
>     /    },/<br>
>     ?<br>
>     And if we really want to use PHPUnit 4.*, so let's fill the version<br>
>     with "~4.8".<br>
>     All these dependencies are for dev, so this won't be a big deal if<br>
>     versions are not compatible, but this could leads to errors with<br>
>     PHPUnit the day it will have an incompatible version.<br>
><br>
>     What do you think about this?<br>
><br>
>     Thanks for your feedbacks,<br>
>     H.<br>
><br>
><br>
> I forgot the link about the "~":<br>
> <a href="https://getcomposer.org/doc/articles/versions.md#tilde" rel="noreferrer" target="_blank">https://getcomposer.org/doc/articles/versions.md#tilde</a><br>
> The "^" may also be interesting. But I think that it is useless for us,<br>
> until we only limit version to minor version number and not to patch.<br>
><br>
> H.<br>
<br>
Using "~" would make sense.<br>
<br>
<br>
--<br>
Marc Delisle | phpMyAdmin<br></blockquote><div> </div><div>Marc,</div><div><br></div><div>Thanks for your answer. I updated the composer.json file. We'll see the result of Travis.</div><div><br></div><div>H.</div></div></div>