Closed maximal closed 10 years ago
As this repo is not going to be used as a library it is fine to lock the version of codesniffer.
This can be done in composer.json:
"require": {
"php": ">=5.4.0",
// Version of CodeSniffer
"squizlabs/php_codesniffer": "1.*"
}
Or am I wrong?
composer.json defines a general restriction. you could write "squizlabs/php_codesniffer": "*"
to always have the latest version. composer.lock will be updated when you call composer update
. To ensure everyone is working with the same version when working in a team for example all can do composer install
to get exactly the same versions as all other team members.
Lock file doesn’t need to be in repo.