Composer · Question 10 of 12
Why does composer.lock belong in version control?
1 answer is correct. Medium
Show answer
Answer
- D So that all environments get the same versions
Explanation
With composer.lock committed, composer install installs the same versions locally, on staging and live. It contains no credentials.