dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Special:AllMessages: Improve zebra striping on hover"
[lhc/web/wiklou.git]
/
maintenance
/
checkComposerLockUpToDate.php
diff --git
a/maintenance/checkComposerLockUpToDate.php
b/maintenance/checkComposerLockUpToDate.php
index
b504bde
..
69f16f5
100644
(file)
--- 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 ) ) {
// 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,10
+50,9
@@
class CheckComposerLockUpToDate extends Maintenance {
}
}
if ( $found ) {
}
}
if ( $found ) {
- $this->
e
rror(
+ $this->
fatalE
rror(
'Error: your composer.lock file is not up to date. ' .
'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!
);
} 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;
require_once RUN_MAINTENANCE_IF_MAIN;