Use tilde (~) when specifying a version in the composer file.