composer update --lock

composer Warning: The lock file is not up to date with the latest changes in composer.json...В ответ на composer install

Проблема может появляться, если вы:

  1. добавили ещё один пакет в composer.json
  2. и попытались выполнить composer install,

в ответ можно получить сообщение вида:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files

Subscribe to RSS - composer update --lock