Remove jetbrains/phpstorm-stubs from composer dev dependancies
[lhc/web/wiklou.git] / maintenance / updateSpecialPages.php
index cc9f763..1c6f9b3 100644 (file)
@@ -72,7 +72,7 @@ class UpdateSpecialPages extends Maintenance {
                                $queryPage = $specialObj;
                        } else {
                                $class = get_class( $specialObj );
-                               $this->error( "$class is not an instance of QueryPage.\n", 1 );
+                               $this->fatalError( "$class is not an instance of QueryPage.\n" );
                                die;
                        }
 
@@ -101,7 +101,7 @@ class UpdateSpecialPages extends Maintenance {
                                                $this->output( sprintf( "%.2fs\n", $seconds ) );
                                        }
                                        # Reopen any connections that have closed
-                                       $this->reopenAndWaitFotReplicas();
+                                       $this->reopenAndWaitForReplicas();
                                } else {
                                        $this->output( "cheap, skipped\n" );
                                }
@@ -118,7 +118,7 @@ class UpdateSpecialPages extends Maintenance {
         * Queries that take a really long time, might cause the
         * mysql connection to "go away"
         */
-       private function reopenAndWaiFotReplicas() {
+       private function reopenAndWaitForReplicas() {
                if ( !wfGetLB()->pingAll() ) {
                        $this->output( "\n" );
                        do {
@@ -170,5 +170,5 @@ class UpdateSpecialPages extends Maintenance {
        }
 }
 
-$maintClass = "UpdateSpecialPages";
+$maintClass = UpdateSpecialPages::class;
 require_once RUN_MAINTENANCE_IF_MAIN;