X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckComposerLockUpToDate.php;h=69f16f50250041bb2db2237c96d3c6a91cdcb68e;hb=c5dadfae968aff5a8d03919734dbaf9c118d0ed8;hp=3f0a83ddf29c73674d64a122af520db4e4c88eef;hpb=b2cec6c5928e8e1b417c0855ce8e5560e2e089e1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkComposerLockUpToDate.php b/maintenance/checkComposerLockUpToDate.php index 3f0a83ddf2..69f16f5025 100644 --- a/maintenance/checkComposerLockUpToDate.php +++ b/maintenance/checkComposerLockUpToDate.php @@ -24,9 +24,8 @@ class CheckComposerLockUpToDate extends Maintenance { // Maybe they're using mediawiki/vendor? $lockLocation = "$IP/vendor/composer.lock"; if ( !file_exists( $lockLocation ) ) { - $this->error( - 'Could not find composer.lock file. Have you run "composer install"?', - 1 + $this->fatalError( + 'Could not find composer.lock file. Have you run "composer install --no-dev"?' ); } } @@ -51,18 +50,16 @@ class CheckComposerLockUpToDate extends Maintenance { } } if ( $found ) { - $this->error( + $this->fatalError( 'Error: your composer.lock file is not up to date. ' . - 'Run "composer update" to install newer dependencies', - 1 + 'Run "composer update --no-dev" to install newer dependencies' ); } else { // We couldn't find any out-of-date dependencies, so assume everything is ok! $this->output( "Your composer.lock file is up to date with current dependencies!\n" ); } - } } -$maintClass = 'CheckComposerLockUpToDate'; +$maintClass = CheckComposerLockUpToDate::class; require_once RUN_MAINTENANCE_IF_MAIN;