...
When this has completed, make sure to version (assuming you use a version control system) changes done to "composer.lock" file, this is the file that contains all details of which versions are currently used and makes sure the e same version is used among all developers, staging and eventually production when current changes are approved for production (assuming you have a workflow for this).
...