X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fshell.php;h=c8a8a4527fa4f524e53bb5ef923a4ee7ce53f86b;hb=cf02a19cdb114049f209bec637e07a0c97ae8fca;hp=65c353a29e18b74a5d607e4d982b8b2498a26bce;hpb=b798783395ee05bb0f7d682c615458a655646a94;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/shell.php b/maintenance/shell.php index 65c353a29e..c8a8a4527f 100644 --- a/maintenance/shell.php +++ b/maintenance/shell.php @@ -58,7 +58,7 @@ class MediaWikiShell extends Maintenance { public function execute() { if ( !class_exists( \Psy\Shell::class ) ) { - $this->error( 'PsySH not found. Please run composer with the --dev option.', 1 ); + $this->fatalError( 'PsySH not found. Please run composer with the --dev option.' ); } $traverser = new \PhpParser\NodeTraverser(); @@ -96,5 +96,5 @@ class MediaWikiShell extends Maintenance { } -$maintClass = 'MediaWikiShell'; +$maintClass = MediaWikiShell::class; require_once RUN_MAINTENANCE_IF_MAIN;