Answer the question
In order to leave comments, you need to log in
How to properly set up composer.lock?
Hello
Suppose we have a working application that uses packages installed via composer, do I understand correctly that if we run composer update and composer.json indicates that we are working with a version 2 package, then the package will be updated to version 3 and the application will be in jeopardy?
Answer the question
In order to leave comments, you need to log in
always use composer install
!
When there is time to update or something is notably buggy, then we do it composer update
or composer update name
, depending on how much time we have, sort it out. But for production and beginners only composer install
it all depends on how it is specified in composer.json, usually indicated through "^" - not higher than current. major version, "~" is not higher than the minor version. But I can be wrong
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question