Closed alister closed 8 years ago
From https://getcomposer.org/doc/articles/versions.md#tilde:
Note: The ~ operator has an exception on its behavior for the major release number. This means for example that ~1 is the same as ~1.0 as it will not allow the major number to increase trying to keep backwards compatibility.
Currently, the composer.json would allow any 4.x or 5.x+ versions PHPUnit, however a
composer update
may bring the .lock file to a PHPUnit 5.* version - which only supports PHP v5.6+. That would break the Travis matrix for PHP versions 5.3, 5.4, & 5.5 builds."phpunit/phpunit":"~4.8"
allows for a non-breaking PHPunit from v4.8, which remains compatible with PHP v5.3+ versions, including PHP v7 & HHVM.