X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckComposerLockUpToDate.php;h=69f16f50250041bb2db2237c96d3c6a91cdcb68e;hb=a88f1d6b58613cbfa5c24c97887197a41ce66908;hp=e5b4c13ec72e75a145844c0183a52ff6c3017a1d;hpb=69f4cbfee84c005583aaa0f73e8b7de1e768549e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkComposerLockUpToDate.php b/maintenance/checkComposerLockUpToDate.php index e5b4c13ec7..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 --no-dev"?', - 1 + $this->fatalError( + 'Could not find composer.lock file. Have you run "composer install --no-dev"?' ); } } @@ -51,10 +50,9 @@ class CheckComposerLockUpToDate extends Maintenance { } } if ( $found ) { - $this->error( + $this->fatalError( 'Error: your composer.lock file is not up to date. ' . - 'Run "composer update --no-dev" 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! @@ -63,5 +61,5 @@ class CheckComposerLockUpToDate extends Maintenance { } } -$maintClass = 'CheckComposerLockUpToDate'; +$maintClass = CheckComposerLockUpToDate::class; require_once RUN_MAINTENANCE_IF_MAIN;