X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=c780b6ae6b4eee949cdf9883ac16a422eef28144;hb=1e7aea9089066d69971f430fa1255be315487fc4;hp=529c069e792247925928bf0cd85f3becd6bfc405;hpb=785960660f2a29f59eaaf760e71f675b9a71de8c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 529c069e79..c780b6ae6b 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -131,7 +131,7 @@ class UpdateMediaWiki extends Maintenance { // Check external dependencies are up to date if ( !$this->hasOption( 'skip-external-dependencies' ) ) { - $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' ); + $composerLockUpToDate = $this->runChild( CheckComposerLockUpToDate::class ); $composerLockUpToDate->execute(); } else { $this->output( @@ -170,11 +170,9 @@ class UpdateMediaWiki extends Maintenance { $badPhpUnit = dirname( __DIR__ ) . '/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php'; if ( file_exists( $badPhpUnit ) ) { - // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong // Bad versions of the file are: // https://raw.githubusercontent.com/sebastianbergmann/phpunit/c820f915bfae34e5a836f94967a2a5ea5ef34f21/src/Util/PHP/eval-stdin.php // https://raw.githubusercontent.com/sebastianbergmann/phpunit/3aaddb1c5bd9b9b8d070b4cf120e71c36fd08412/src/Util/PHP/eval-stdin.php - // @codingStandardsIgnoreEnd $md5 = md5_file( $badPhpUnit ); if ( $md5 === '120ac49800671dc383b6f3709c25c099' || $md5 === '28af792cb38fc9a1b236b91c1aad2876' @@ -235,13 +233,13 @@ class UpdateMediaWiki extends Maintenance { # This needs to be disabled early since extensions will try to use the l10n # cache from $wgExtensionFunctions (T22471) $wgLocalisationCacheConf = [ - 'class' => 'LocalisationCache', - 'storeClass' => 'LCStoreNull', + 'class' => LocalisationCache::class, + 'storeClass' => LCStoreNull::class, 'storeDirectory' => false, 'manualRecache' => false, ]; } } -$maintClass = 'UpdateMediaWiki'; +$maintClass = UpdateMediaWiki::class; require_once RUN_MAINTENANCE_IF_MAIN;