You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Composer/Command/ValidateCommand.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ protected function configure()
45
45
->setDescription('Validates a composer.json and composer.lock.')
46
46
->setDefinition(array(
47
47
newInputOption('no-check-all', null, InputOption::VALUE_NONE, 'Do not validate requires for overly strict/loose constraints'),
48
+
newInputOption('check-lock', null, InputOption::VALUE_NONE, 'Check if lock file is up to date (even config.lock is false, overrides --no-check-lock)'),
48
49
newInputOption('no-check-lock', null, InputOption::VALUE_NONE, 'Do not check if lock file is up to date'),
49
50
newInputOption('no-check-publish', null, InputOption::VALUE_NONE, 'Do not check for publish errors'),
50
51
newInputOption('no-check-version', null, InputOption::VALUE_NONE, 'Do not report a warning if the version field is present'),
@@ -95,6 +96,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$lockErrors[] = '- The lock file is not up to date with the latest changes in composer.json, it is recommended that you run `composer update` or `composer update <package name>`.';
0 commit comments